reduSetSplitOn()

Sets the split mode in a redundant system.

Synopsis

int reduSetSplitOn(string sSystem,bool bAsk=true, [string sShape]);

Parameter

Parameter Description
sSystem System name (System1, System2).
bAsk

TRUE = The windows are open

FALSE = For internal use. No windows

sShape Specifies the shape name of the button that is used to set the „toggleState“ mode. The mode „toggleState“ specifies whether the button looks liked pressed or not.

Return value

The function returns 0 if it was successfully executed and -1 in case of errors.

Error

Missing or wrong parameters. The function returns -1 in case of errors.

Description

Sets the split mode in a redundant system.

EXAMPLE

Sets the split mode in a redundant system.

  1. main()
    {
      string sSystem = "System1:";
      bool bAsk = true;
      string sShape = "PUSH_BUTTON1";
      int i = reduSetSplitOn(sSystem, bAsk, sShape);
      bool bState;
      getValue(sShape, "toggleState", bState);
      setValue(sShape, "toggleState", !bState);
    }

Assignment

Redu/Dist functions

Availability

CTRL, UI