Difference between revisions of "Signal Reader Trigger Expressions"

From WICE Wiki v2.89
Jump to navigation Jump to search
Line 26: Line 26:
!OR
!OR
|Logical disjunction between left and right side boolean expressions. Syntax: boolean expression OR boolean expression
|Logical disjunction between left and right side boolean expressions. Syntax: boolean expression OR boolean expression
|-
!CHANGE
|True when the specified signal changes value. Syntax: CHANGE(Signal)
|-
|-


|}
|}

Revision as of 11:02, 18 June 2018

Trigger conditions are expressions evaluated by the Signal Signal reader module to control when recorders are started and stopped and when measurement set-up switches are performed. Trigger conditions are boolean expressions, evaluated to either true or false. A number of operators can be combined to for the trigger expression. The allowed operators in trigger expressions are shown in the table below.

= Tests for equality. Syntax: expression = expression
!= Tests for inequality. Syntax: expression != expression
< Tests for left side of expression being less than right side. Syntax: expression < expression
> Tests for left side of expression being greater than right side. Syntax: expression > expression
<= Tests for left side of expression being less or equal to right side. Syntax: expression <= expression
>= Tests for left side of expression being greater or equal to right side. Syntax: expression >= expression
AND Logical conjunction between left and right side boolean expressions. Syntax: boolean expression AND boolean expression
OR Logical disjunction between left and right side boolean expressions. Syntax: boolean expression OR boolean expression
CHANGE True when the specified signal changes value. Syntax: CHANGE(Signal)