Appendix A
API Command Reference
NetScan User’s Manual A-33
M#
- Set Measuring Mode
TYPE
System
EXECUTION
Deferred
SYNTAX
M#mode
Specify measuring mode. Valid options for
mode
are:
0
- Line cycle
integration / high-speed multi-channel mode, and
1
- Single channel high-
speed burst mode.
DESCRIPTION
The Set Measuring Mode (
M#
) command selects one of the two internal measuring modes supported by the
NetScan units:
Normal Mode (for
Line Cycle Integration
and
High-Speed Multi-Channel
applications). Normal mode is the
system default. In this mode each channel is averaged over a selected number of samples as specified with the
Set Averaging Weight (
W#
) command. As there are 32 samples per line cycle, 32, 64, 128, or 256 samples will
automatically enable line cycle noise rejection.
Thermocouples and DC Volts are averaged over the specified number of samples. For AC Volts, the root mean
square (RMS) is computed over the specified number of samples.
High-speed, Single-Channel Mode (Burst mode) is used to sample a single channel at a frequency specified by
the Set Frequency (
F#
) command. The channel is sampled in blocks of 256 readings, with the number of blocks
specified by the Set Counts (
Y
) command.
Refer to
Measuring Mode
section of
Appendix C
for more detailed information.
EXAMPLES
PRINT#1, “M#0X”
‘ Select Line Cycle Integration/High-Speed Multi-Channel Mode
PRINT#1, “W#32X”
‘ Select number of samples = 32
PRINT#1, “Y0,10,0”
‘ Setup to read 10 post trigger scans
PRINT#1, “C1-3,1X”
‘ Enable channels 1 - 3 for Type J thermocouples
PRINT#1, “T1,8,0,0X”
‘ Arm the unit
PRINT#1, “@X”
‘ Trigger unit and collect scans
PRINT#1, “M#1X”
‘ Select Single Channel High-Speed Burst Mode
PRINT#1, “F#10000.0X”
‘ Set sampling frequency = 10 KHz
PRINT#1, “Y0,4096,0”
‘ Set count to take 1 MB’s worth of samples
PRINT#1, “C1,26X”
‘ Select channel 1 for reading 250 Volts AC samples
PRINT#1, “T1,8,0,0X”
‘ Arm the unit
PRINT#1, “@X”
‘ Trigger unit and collect scans
Comments to this Manuals