5.SoftwareControl-LightwareDeviceController
HDMI-TPS-TX200series–User'sManual
54
Appliedfirmwarepackage:v1.3.2b3 | LDCsoftware:v2.5.7b2
5.9.6.
Variables
DIFFERENCE:
ThisfeatureisavailableonlyforSW4-TPS-TX240-PlusfromFWpackagev1.3.0b6.
YoucancreatecustomvariablesinnumberortextformatwhichcanbeusedintheEventManager.The
variablescanhavethefollowingproperties/methods:
#variables
▪
Numeric(integer)typewithmin/maxvaluesetting,orstring-type(determinedautomatically)
▪
Increment/stepthenumericvalue,
▪
Value-dependentcaseoperations,
▪
ReadingandstoringthevaluesofLW3propertiesintostringornumericvariables.
▪
The max length of a string variable can be 15 characters. Numeric variable is defined between
-2147483648and2147483647.
Thedefinedvariablesarestoredinanon-volatilememoryandthevalueiskeptincaseofareboot.
Variables tab in the Control menu
Value Section
Youcansetthevalueofthevariablebythefield.Thetypeofthevariableisdeterminedautomaticallybased
onitsvalue(numeric/string).
Add / Cycle Section
This section can be used for numeric types.
▪
Operand
:theincrement,thenumberthatwillbeaddedtothecurrentvalue(negativevalueisaccepted).
▪
Min (optional)
:thelowestallowedvalue
▪
Max (optional)
:thehighestallowedvalue
▪
Add
button:theoperandwillbeaddedtothecurrentvalue.Iftheresultwouldbehigherthanthemax
setting,themaxwillbevalid;iftheresultwouldbelowerthantheminsetting,theminwillbevalid
▪
Cycle
button:theoperandwillbeaddedtothecurrentvalue.Iftheresultwouldbebeyondthelimit
(min/max),thevaluewillbesteppedtotheotherendoftheinterval.
Examples
Thefollowingshowsthedifferencebetweenthe
Add
and the
Cycle
options. The input values are the same in
bothcases:
▪
Min
:1
▪
Max
:5
▪
Operand
:1
In
Add
case:whenthevaluehitsthelimit(max),theoperandwillnotincreasethevalueanymore.
In
Cycle
case:whenthevaluehitsthelimit(max),thevaluewillbesteppedtotheotherendoftheinterval.
Similarcasehappensviceversa:whentheoperandisanegativenumberandthevaluehitstheminvalue.
TIPSANDTRICKS:
Setmin=1,max=2,operand=1andusethe
cycle
method. Thus, the value of the variable
canbetoggledwhichcanbelinkedtoapropertywithtwostates(e.g.low/highlevel)inEventmanager.
Case Convert
Thistoolcanbeusedtochangethevalueofavariableifitfitsinanyofthedefinedintervals.Thecheck
andthechangewillbeperformedonlyifyoupressthe
Convert
button. A typical example when two different
rangesofvalueshavetomeet:
Incoming values:
between0and255(e.g.thesliderofacontrollercanhavethesevalues).
Outgoing values:
between0and100(e.g.thecontrolleddeviceacceptsthesevalues).
Definedcases:
1
2
3
4
5
Add
Add
Add
Add
Add
1
Cycle
2
Cycle
3
Cycle
4
Cycle
5
Cycle
Min
Max
New value
Min
Max
New value
Case1
1
25
10
Case6
126
150
60
Case 2
26
50
20
Case7
151
175
70
Case 3
51
75
30
Case8
176
200
80
Case4
76
100
40
Case 9
201
225
90
Case5
101
125
50
Case10
226
255
100