Switches

Java Class Name:  VoltageSwitch

Notable APIs:

void SetValue( double value );
Sets the switch’s position. For a 2-stage switch, the valid values are 0 and 1; for a 3-stage switch, the valid values are 0, 1, and 2, etc.

double GetValue();
Returns the switch’s current position.

Notifications: A Switch_Changed notification will arrive in Notify() whenever a switch’s value changes:

Save/Restore State:  Voltage Modular will save & restore the states of switches when users save & load presets. When a preset loads, you’ll receive Switch_Changed notifications at module startup (just after your Initialize() function has run) for each of the switches on your module that aren’t set to their default states.