Z E S ZIMMER Electronic Systems GmbH Chapter 4
63
4.4.4.2.5 Variables
There is a distinction between read only variables and read write variables. The first ones are
all measuring values of LMG450 but also values like cycle time and measuring ranges. This
variables can be used for calculation like constants. The second one are the user defined
variables.
So following is o.k.
v0=Utrms;
but
Utrms=0;
is not allowed.
A unit can be assigned to the variable. To assign the unit ‘cm’ to the varaible ‘a’ write:
a.cm=...
The result of expressions can only be stored in the user defined variables with the default
identifiers ‘var0’ to ‘var11’. This identifiers are valid until they are redefined in a script. The
redefinition is simply be done by using a not existing identifier. This identifier replaces the first
variable which was not changed until now. The maximum length of the new identifier is 10
characters. In ‘Example 2’ the identifier
Uhigh
replaces the identifier
var0
and
Ulow
replaces
var1
. As you can see the identifiers are replaced in the order of the occurrence. If you press
End, all occurrences of
var0
are replaced with
Uhigh
and so on. So you get in the user defined
menu or the plot menu the new identifiers.
The read-only variables are identical to the identifiers in the menus (see 4.5, ‘Entering
identifiers’.
4.4.4.2.5.1 Local
variables
A third kind of variables are local variables. They are also user defined, but are not displayed in
the custom menu. A local variable starts always with a ‘
$
’ character:
$test=Utrms*19.234;
b=Iac*$test;
In this example
$test
is not displayed, but only
b
.
4.4.4.2.5.2 Environment
variables
These variables are accessible via the ‘
Env’
ID as an array:
Env[0...7]
.
They are (in opposite to standard variables) not displayed, but they can (in opposite to local
variables) be used externally (e.g. in the processing signal interface). Further on they can be set
directly by the interface (see 10.2.2.1.1, ‘ENVironment
ENV Env’).
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: ......