Condition
Last update: 09.03.2026Condition causes a load or a joint condition to be active only under defined circumstances. A condition is expressed in one of the following forms:
-
MeasureComponentoperatorthreshold -
LeftThreshold<MeasureComponent<RightThreshold -
LeftConditionoperatorRightCondition
For case 1
-
MeasureComponentis a scalar Measure. -
Operatoris one of the following math operators:E_GreaterThanE_LessThanE_DoubleEqualE_ExactlyEqual
-
Thresholdis the threshold value.
Note A condition cannot be shared between various actuators. For example, if two joint conditions must be deactivated at the same time, two conditions must be created.
Example:
DispCond = CS_Condition(CS_Condition.E_ConditionType.E_GreaterThan,DispX,0.1)
For case 2
-
MeasureComponentis a scalar Measure. -
LeftThresholdandRightThresholdare the bounds within which the condition will be true.
Example:
RangeCond = CS_Condition(DispX,0.0,0.1)
For case 3
-
LeftThresholdandRightThresholdare two conditions (case 1, 2 or 3). -
Operatoris one of the following boolean operators:E_OrE_And
Example:
BoolCond = CS_Condition(CS_Condition.E_ConditionType.E_Or, RangeCond, DispCond)