User manual

Chapter 3 Software Overview
© National Instruments Corporation 3-115 NI-DAQ User Manual for PC Compatibles
The
SCXI_Set_Gain
function changes the gain or range of the
SCXI-1100, SCXI-1102/B/C, VXI-SC-1102/B/C, SCXI-1122,
SCXI-1125, SCXI-1126, SCXI-1141, SCXI-1142, SCXI-1143,
SCXI-1520, SCXI-1530, SCXI-1531, or SCXI-1540 module. The module
maintains this gain or range setting until you call the function again to
change it. You can also do any other module-specific programming at this
point, such as
SCXI_Configure_Filter or SCXI_Set_Input_Mode
.
To achieve software scanning, select a different channel on the module
using the
SCXI_Change_Chan
function after acquiring data from the
channel you want with the
AI
or
DAQ
functions. If you want a channel on
a different module, call the
SCXI_Single_Chan_Setup
function again
to enable the appropriate module outputs and manage the SCXIbus signal
routing.
Figure 3-43 shows the function call sequence of a single channel or
software-scanning application using a Simultaneous Sample and Hold
(SSH) module in multiplexed mode.