Instrument controls LMG450
64
4.4.4.2.6 Keywords
These are strings which are no variables or constants but which are used for controlling the
script editor:
if
The start of a conditioned program sequence. The condition have to follow in the
round brackets.
else
The end of the program sequence which is used if the condition of the
if
was true (no
semicolon at the end!). All command after the
else
until the next
fi
are used, if the
condition of the
if
was not true. The else is optional.
fi
The end of the program sequence which is used if the condition of the
if
was true (no
semicolon at the end!).
4.4.4.2.7 Functions
The following functions are implemented at the moment (x is the result of a valid expression,
constant or function):
abs(x)
absolute value of x
acos(x)
arcus cosine of x (result in radiant!)
asin(x)
arcus sine of x (result in radiant!)
bell()
generates a short sound with the internal speaker
btst(x, bit_no)
Returns true, if in variable x bit number bit_no is set. The bits are counted
from 1 to 32. You should only apply this function onto integer values like
digital inputs or result of flicker measuring. Usually you should not use it
with float numbers.
cos(x)
cosine of x (argument in radiant!)
digin(mask)
Returns the value of the digital inputs. The values are coded in one byte:
input 1-4 correspond to bit 0-3 and input 7-10 to bit 4-7. So if the inputs 1
and 8 are active, the returned value would be 33. With mask you can
define, which values are checked: With a mask of 32 only the input 8 is
checked. In this case the return value can only be 32 or 0. The mask is
useful when checking the status of one input, independent from the others.
If you want to check all inputs, you should use a mask of 255!
dout_off(nr)
Switches digital output number nr. off (into no-alarm state). 1
≤
nr
≤
4(8)
Summary of Contents for LMG450
Page 1: ...4 Channel LMG450 Power Meter User manual Status 2009 02 17...
Page 2: ......
Page 4: ......
Page 5: ......
Page 6: ......
Page 8: ......
Page 10: ......
Page 18: ......
Page 22: ......
Page 36: ......
Page 76: ......
Page 102: ......
Page 112: ......
Page 118: ......
Page 124: ......
Page 230: ......
Page 240: ......
Page 292: ......