WindGensI (Int) Interface
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 WindGensI(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: WindGens.First
Set first WindGen element active; returns 0 if none.
Parameter 1: WindGens.Next
Sets next WindGen element active; returns 0 if no more.
Parameter 2: WindGens.Count
Returns the number of WindGen Elements.
Parameter 3: WindGens.Idx read
This parameter gets the active WindGen element by index: 1.. Count
Parameter 4: WindGens.Idx write
This parameter sets the active WindGen element by index: 1.. Count.
Parameter 5: WindGens.N_WTG read
This parameter gets the number of WTG in aggregation for the active WindGen object.
Parameter 6: WindGens.N_WTG write
This parameter sets the number of WTG in aggregation for the active WindGen object.
Parameter 7: WindGens.NPoles read
This parameter gets the number of pole pairs of the induction generator (Default 2).
Parameter 8: WindGens.NPoles write
This parameter sets the number of pole pairs of the induction generator (Default 2).
Parameter 9: WindGens.QFlag read
This parameter gets the flag indicating the status of the reactive power and voltage control (1 = true, 0 = false).
Parameter 10: WindGens.QFlag write
This parameter sets the flag indicating the status of the reactive power and voltage control (1 = true, 0 = false).
Parameter 11: WindGens.QMode read
This parameter gets the reactive power control mode (0:Q, 1:PF, 2:Volt-var).
Parameter 10: WindGens.QMode write
This parameter sets the reactive power control mode (0:Q, 1:PF, 2:Volt-var).