Specifications

CREATING MACROS • METERING MACROS
112
7 Beaver Brook Road, Littleton, MA 01460 • 978-486-0086 • www.burk.com
METERING MACROS
Macros can be used to modify all parameters pertaining to the
metering input channels, including the A/D values, calibration
constants, and upper and lower alarm limits. They can
enable/disable each channel’s input and retrieve the current
floating point value of any meter channel.
This ability is useful for long-term functions such as when a
transmitter changes its power output. A macro can make the
power change and also change the upper and lower limits.
When making these changes, it is suggested that the meter
channel being modified use the previously described
MUTEMETER command as one of its first lines of code. Also,
remember to use the UNMUTEMETER command when finishing
the macro.
METER
The METER command allows a macro to retrieve the floating
point value of a particular meter channel. A metering channel can
be set to the same value as another metering channel or to a set
value. For these values to remain unchanged, the meter channel
must stop collecting new data by the use of the METEROFF
command explained later.
The METER statement must be immediately followed by
parentheses with the channel number inside.
Macro Line Example Description
METER (5) = METER(9) [CR] Meter Channel 5 of this unit is now equal to Meter
Channel 9
WHILE METER(12)<100 As long as Meter Channel 12 of this unit is less than
100 the WHILE loop will cycle