DSSStartup

Function for starting OpenDSS and linking to MATLAB

Contents

Syntax

[DSSCircObj, DSSText, gridpvPath] = DSSStartup;

Description

Function to start up OpenDSS in the background and bring the program handle into MATLAB to allow control of OpenDSS from MATLAB through the COM interface. This function only needs to be executed once per MATLAB session. The same handle to OpenDSS can be used the rest of the session. Note: the OpenDSS session started through the COM interface is separate from the executable program, so the active circuits and parameters can be different between the COM and visual executable.

Inputs

Outputs

Example

Initiating OpenDSS from MATLAB:

[DSSCircObj, DSSText, gridpvPath] = DSSStartup
%
 
DSSCircObj =
 
	COM.OpenDSSEngine_DSS

 
DSSText =
 
	Interface.OpenDSS_Engine.IText


gridpvPath =

C:\Users\mjreno\Dropbox\OpenDSS_ToolBox\GridPV\