This interface can be used to read/write certain properties of the active DSS object. The structure of the interface is as follows:


int32_t GeneratorsI(int32_t Parameter, int32_t Argument);


This interface returns an integer with the result of the query according to the value of the variable Parameter, which can be one of the following:


Parameter 0: Generators.First

This parameter sets first generator to be active. Returns 0 if None.


Parameter 1: Generators.Next

This parameter sets next generator to be active. Returns 0 if None.


Parameter 2: Generators.ForcedON read

This parameter returns 1 if the generator is forced ON regardless of other dispatch criteria; otherwise, returns 0.


Parameter 3: Generators.ForcedON Write

This parameter allows to force ON regardless of other dispatch criteria. To force ON put 1 in the argument, otherwise put 0.


Parameter 4: Generators.Phases read

This parameter returns the number of phases of the active generator.


Parameter 5: Generators.Phases Write

This parameter sets the number of phases (argument) of the active generator.


Parameter 6: Generators.Count

This parameter returns the number of generators Objects in Active Circuit.


Parameter 7: Generators.Idx read

This parameter gets the active generator by Index into generators list. 1..Count.


Parameter 8: Generators.Idx Write

This parameter sets the active generator (argument) by Index into generators list. 1..Count.


Parameter 9: Generators.Model read

This parameter gets the active generator Model (see Manual for details).


Parameter 10: Generators.Model Write

This parameter sets the active generator Model (see Manual for details).