Download USER MANUAL - Project Magenta

Transcript
Project Magenta Manual V15
Revision: 23 February-2011
multibuttonlower
will have the button push activate the lower variable of the multibutton
textlightbox Text, X, Y, TextFactor, Colour, VariableName, XSize, YSize
textlightbox PRESS,-199.0,-87.8,.8,o,HydEng1Press,8,4
gauge Variable, X, Y, Radius, Max, DegreeStart, DegreeEng,
gauge [variable],[x],[y],[radius],[min],[max],[degreestart],[degreeend],[text],[displayvalue]
(more definitions to come)
Section [logics]
Here we do a lot of the background work that makes the elements change state. The language to describe
the logical connections between variables is similar to what you would expect in BASIC, and the boolean
commands should be easily accessible as well.
Equations:
variable_a
variable_a
variable_a
variable_a
variable_a
=
=
=
=
=
variable_b
variable_b + variable_c
(variable_b or variable_c) and variable_d
variable_b <> variable_c
(variable_b < variable_c) and variable_d
Time delayed equations: (sometimes things happen with a slight delay)...
variable_a = variable_b [2]
// this means that the value of variable_b is assigned to the value
// of variable_a 2 (two) seconds after variable_b changed
Conditions:
if (variable_a or variable_b)
____variable_c = variable_b and 1
else
____variable_c = 0
endif
// you can also use if ... then, the then is simply ignored
if (StartSelect = 2) and (bleed1ref <> 0)
____if (fsstartflag1 = 0) and (fscutoff1 <> 0) then
________if fs1n1 < 10 then fsStarter1 = 1
____else
________fsStarter1 = 2
____endif
else
59