Chapter 2 Function Reference — SCXI_Scale
©
National Instruments Corporation 2-353 NI-DAQ FRM for PC Compatibles
Parameter Discussion
channel is the number of the channel on the SCXI module.
Range: 0 to n–1, where n is the number of channels available on the module.
–1: Scale data acquired from the temperature sensor on the terminal block connected
to the module if the temperature sensor is in the MTEMP configuration.
SCXIgain is the SCXI module or channel gain or range setting. Valid SCXIgain values
depend on the module type:
SCXI-1100: 1, 2, 5, 10, 20, 50, 100, 200, 500, 1,000, 2,000.
SCXI-1120: 1, 2, 5, 10, 20, 50, 100, 200, 250, 500, 1,000, 2,000.
SCXI-1120D: 0.5, 1, 2.5, 5, 10, 25, 50, 100, 250, 500, 1000.
SCXI-1121: 1, 2, 5, 10, 20, 50, 100, 200, 250, 500, 1,000, 2,000.
SCXI-1122: 0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 20, 50, 100, 200, 500, 1,000, 2,000.
SCXI-1126: 250, 500, 1,000, 2,000, 4,000, 8,000, 16,000, 32,000, 64,000, 128,000.
SCXI-1140: 1, 10, 100, 200, 500.
SCXI-1141: 1, 2, 5, 10, 20, 50, 100.
TBgain is the gain applied at the SCXI terminal block. Currently, only the SCXI-1327
terminal block can apply gain to your SCXI module channels; it has DIP switches to choose
a gain of 1.0 or 0.01 for each input channel. You can use the SCXI-1327 with the SCXI-1120,
SCXI-1120D, and SCXI-1121 modules. For terminal blocks that do not apply gain to your
SCXI channels, set TBgain = 1.0.
DAQboard is the device number of the DAQ device you used to acquire the binary data. This
should be the same device number that you passed to the
DAQ or SCAN function call, and the
same DAQboard number you passed to
SCXI_Single_Chan_Setup or
SCXI_SCAN_Setup.
DAQchannel is the DAQ device channel number you used to acquire the binary data. This
should be the same channel number that you passed to the
DAQ or SCAN function call. For most
cases, you will be multiplexing all of your SCXI channels into DAQ device channel 0.
DAQgain is the DAQ device gain you used to acquire the binary data. This should be the same
gain code that you passed to the
DAQ or SCAN function call. For most cases, you will use a
DAQ device gain of 1, and you will set any gain you need at the SCXI module.
numPoints is the number of data points you want to scale for the given channel. The
binArray and voltArray parameters must be arrays of a length greater than or equal to
numPoints. If you acquired data from more than one SCXI channel, you must be careful to
pass the number of points for this channel only, not the total number of points you acquired
from all channels.