National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference SCXI_Single_Chan_Setup
NI-DAQ FRM for PC Compatibles 2-366
©
National Instruments Corporation
SCXI_Single_Chan_Setup
Format
status = SCXI_Single_Chan_Setup (SCXIchassisID, moduleSlot, moduleChan,
DAQdeviceNumber)
Purpose
Sets up a multiplexed module for a single channel analog input operation to be performed by
the given DAQ device. Sets the module channel, enables the module output, and routes the
module output on the SCXIbus if necessary. Resolves any contention on the SCXIbus by
disabling the output of any module that was previously driving the SCXIbus. You also can use
this function to set up to read the temperature sensor on a terminal block connected to the front
connector of the module.
Parameters
Input
Parameter Discussion
moduleChan is the channel number of the input channel on the module that is to be read.
Range: 0 to n–1, where n is the number of input channels on the module.
–1: Set up to read the temperature sensor on the terminal block connected to the
module if the temperature sensor is in the MTEMP configuration.
DAQdeviceNumber is the device number of the DAQ device that will perform the analog
input. If you will use the SCXI-1200 to perform the analog input, you should specify the
module logical device number.
Name Type Description
SCXIchassisID i16 logical ID assigned to the SCXI chassis
moduleSlot i16 chassis slot number
moduleChan i16 channel number of the input channel on the
module
DAQdeviceNumber i16 device number of the DAQ device used to read
the input channel