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)
Содержание LMG450
Страница 1: ...4 Channel LMG450 Power Meter User manual Status 2009 02 17...
Страница 2: ......
Страница 4: ......
Страница 5: ......
Страница 6: ......
Страница 8: ......
Страница 10: ......
Страница 18: ......
Страница 22: ......
Страница 36: ......
Страница 76: ......
Страница 102: ......
Страница 112: ......
Страница 118: ......
Страница 124: ......
Страница 230: ......
Страница 240: ......
Страница 270: ...System design LMG450 270 14 2 Functional block diagram LMG450 Figure 47 Functional block diagram LMG450...
Страница 292: ......