National Instruments Welding System 321645c-01 Manual De Usuario

Descargar
Página de 554
Chapter 2
Function Reference — SCXI_MuxCtr_Setup
©
 National Instruments Corporation
2-347
NI-DAQ FRM for PC Compatibles
SCXI_MuxCtr_Setup
Format
status = SCXI_MuxCtr_Setup (deviceNumber, enable, scanDiv, ctrValue)
Purpose
Enables or disables a DAQ device counter to be used as a multiplexer counter during SCXI 
channel scanning to synchronize the DAQ device scan list with the module scan list that 
NI-DAQ has downloaded to Slot 0 of the SCXI chassis.
Parameters
Input
Parameter Discussion
enable indicates whether to enable a device counter to be a mux counter for subsequent SCXI 
channel scanning operations.
0:
Disable the mux counter; the device counter is freed.
1:
Enable the device counter to be a mux counter.
scanDiv indicates whether the mux counter will divide the scan clock during the acquisition.
0:
The mux counter does not divide the scan clock; it simply pulses after every n 
mux-gain entry on the DAQ device, where n is the ctrValue. The mux counter 
pulses are currently not used by the SCXI chassis or modules, so this mode is not 
useful.
1:
The mux counter divides the scan clock so that n conversions are performed for 
every mux-gain entry on the DAQ device, where n is the ctrValue.
ctrValue is the value NI-DAQ will program into the mux counter. If enable = 1 and 
scanDiv =1, ctrValue is the number of conversions NI-DAQ will perform on each mux-gain 
entry on the DAQ device. If enable = 0, NI-DAQ ignores this parameter.
Name
Type
Description
deviceNumber
i16
assigned by configuration utility
enable
i16
whether to enable counter 1 to be a mux counter
scanDiv
i16
whether the mux counter will divide the scan 
clock
ctrValue
u16
value to be programmed into the mux counter