
To Create a Logical Expression Custom
Control
The logical expression can be used to trigger an
event when a certain condition is met. The
custom control must be running for the logical
expression to the triggered.
Tip:
The logical expression is built up one event at a time. It is
a good practice to write out all the logical and executable events
you want to insert into the custom control beforehand.
1.
Press
HOME
>
Custom Controls
.
2.
Record your custom control to the point
where you want to insert logical expression
and press
Insert Event
>
More
>
More
>
Logic
.
3.
Use the
Event
knob to select
If
.
4.
Press a
Variable Selection
button to select
the element you want the logic expression
evaluated against.
•
CC Variable
— use the value of a custom
control variable as the test for the logical
expression.
•
XPT
— use a source selection on a bus as
the test for the logical expression.
•
Key
— use the state of a key as the test
for the logical expression.
•
On-Air
— use the on-air state of a bus as
the test for the logical expression.
5.
Press a
Operator Selection
button to select
the operator for the logical expression. Not
all elements support all operators.
•
==
— if X equals Y return true.
•
!=
— if X does not equal Y return true.
•
<
— if X is less than Y return true.
•
<=
— if X is less than or equal to Y return
true.
•
>
— if X is greater than Y return true.
•
>=
— if X is greater than or equal to Y
return true.
6.
Set the conditions for the logical expression.
The available conditions depend on the
variable selected.
•
CC Variable
— use the
CC Variable
and
Value
knobs to select the variable CC and
value that you want to evaluate the
expression against. For example, if you
select
A
for the variable and
5
for the
value, with the
!=
operator (A != 5), the
expression will return true when CC
Variable
A
has any value other than
5
.
•
XPT
— use the
Bus
and
Source
knobs to
select the bus and source on that bus that
you want to evaluate the expression
against. For example, if you select
ME1
PGM
as the bus and
Bnk1Aux1(1:1)
as
the source, with the
==
operator (ME1
PGM == Aux 1:1), the expression will
return true when the aux 1:1 is selected
on the program bus of ME 1.
•
Key
— use the
Key Bus
and
State
knobs
to select the key and state that you want
to evaluate the expression against. For
example, if you select
ME2 Key3
as the
key and
Inactive
as the state, with the
!=
operator (ME2 Key 3 != Inactive), the
expression will return true when key 1
active. This would produce the same
result as Key 1 == Active.
•
On-Air
— use the
Bus
and
State
knobs
to select the bus and state that you want
to evaluate the expression against. For
example, if you select
ME2 PST
as the bus
and
On Air
as the state, with the
==
operator (ME PST == On Air), the
expression will return true when ME 2
preview is on-air.
7.
Insert the custom control events you want
to execute when the logical expression
returns TRUE.
Tip:
You can also nest another If event within the current
event.
8.
Use the
Event
knob to select
Else
.
Tip:
You can insert the Else If event to perform another
boolean expression if the previous expression returned
FALSE.
9.
Insert the custom control events you want
to execute when the logical expression
returns FALSE. These events are only
executed if the boolean expression returned
FALSE. If the expression returned TRUE the
else events are not executed.
10.
Use the
Event
knob to select
End If
. Any
events inserted after this event are not
effected by the boolean expression.
90 • Custom Controls — Ultrix Acuity Operation Manual (v10.1)