isinterfaceOpenDSS

Used to check for a valid interface input.

Contents

Syntax

isinterface = isinterfaceOpenDSS(DSSCircObj);

Description

Used for input parsing. Checks if the input is an OpenDSS COM interface and that it is compiled. Returns 1 if it is a compiled OpenDSS object, 0 otherwise. If it returns 0, it returns an error indicating whether it failed the interface test or the compiled-circuit test.

Inputs

Outputs

Example

Showing interface check

[DSSCircObj, DSSText, gridpvPath] = DSSStartup;
DSSText.command = ['Compile "' gridpvPath 'ExampleCircuit\master_Ckt24.dss"'];
DSSText.command = 'solve';
isinterface = isinterfaceOpenDSS(DSSCircObj)
isinterface =

     1