National Instruments Welding System 321645c-01 Manual De Usuario

Descargar
Página de 554
Chapter 2
Function Reference — SCXI_Change_Chan
NI-DAQ FRM for PC Compatibles
2-332
©
 National Instruments Corporation
SCXI_Change_Chan
Format
status = SCXI_Change_Chan (SCXIchassisID, moduleSlot, moduleChan)
Purpose
Selects a new channel of a multiplexed module that you have previously set up for a 
single-channel analog input operation using the 
SCXI_Single_Chan_Setup
 function.
Parameters
Input
Parameter Discussion
moduleChan is the channel number of the new 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.
Using This Function
It is important to realize that this function affects only the channel selection on the module. 
It does not affect the module output enable or any analog signal routing on the SCXIbus; 
the
SCXI_Single_Chan_Setup
 function is required to do that. 
SCXI_Change_Chan
 can 
be very useful in applications like those shown in Chapter 3, Software Overview, of the 
NI-DAQ User Manual for PC Compatibles, especially when you are trying to read several 
channels on a module in a loop at relatively high speeds. However, you will need to call 
SCXI_Single_Chan_Setup
 again to select a channel on a different module.
Name
Type
Description
SCXIchassisID
i16
logical ID assigned to the SCXI chassis
moduleSlot
i16
chassis slot number of the module
moduleChan
i16
channel number