Appendix A API Commands
ChartScan User’s Manual A-61
W# - Set Average Weight
TYPE System
EXECUTION Deferred
SYNTAX W#wt Specify the number of samples to average in the Normal mode, where wt is the
average weight. Valid options for wt are: 1, 2, 4, 8, 16, 32, 64, 128, and
256 (with 32 being the default value).
DESCRIPTION
Normal mode is used for line cycle integration for noise filtering, or for high-speed multiple channel use when
noise is not a problem. The selection for Average Weight (W#) determines how many samples t o average for
each thermocouple or DC volts channel, or how many samples over which the root mean square (RMS) is
calculated for AC volts. As there are 32 samples per line cycle, setting wt to 32, 64, 128, or 256 samples will
automatically enable line cycle noise rejection.
Note: Due to hardware constraints, weights greater than 128 limit the number of channels which can be active
in an acquisition to 122 channels, maximum.
Weight (wt) Maximum # of Channels
1,2,4,8,16,32, 64, 128 128
256 122
EXAMPLE
PRINT#1, “OUTPUT07;M#0X” ‘ Select line cycle integration/high-speed multi-channel mode
PRINT#1, “OUTPUT07;W#64X” ‘ Select number of samples = 64
PRINT#1,
“OUTPUT07;Y0,10,0X”
‘ Setup to read 10 post trigger scans
PRINT#1, “OUTPUT07;C1-
3,1X”
‘ Enable channels 1 - 3 for Type J thermocouples
PRINT#1,
“OUTPUT07;T1,8,0,0X”
‘ Arm the unit
PRINT#1, “OUTPUT07;@X” ‘ Trigger unit and collect scans