National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference SC_2040_Config
NI-DAQ FRM for PC Compatibles 2-292
©
National Instruments Corporation
SC_2040_Config
Format
status = SC_2040_Config (deviceNumber, channel, sc2040gain)
Purpose
Informs NI-DAQ that an SC-2040 Track-and-Hold accessory is attached to the device
specified by deviceNumber and communicates to NI-DAQ gain settings for one or all
channels.
Parameters
Input
Parameter Discussion
channel allows you to specify an individual channel on the SC-2040 or all SC-2040 channels.
Range: –1 for all channels and 0 through 7 for individual channels.
sc2040gain allows you to indicate the gain you have selected with your SC-2040 jumpers.
Range: 1, 10, 100, 200, 300, 500, 600, 700, 800.
Using This Function
You must use this function before any analog input function that uses the SC-2040.
This function reserves the PFI 7 line PFI 7 line on your E Series device for use by NI-DAQ
and the SC-2040. This line is configured for output, and the output is the a signal that indicates
when a scan is in progress.
Caution
Do not try to drive the PFI 7 line after calling this function. If you do, you might
damage your SC-2040, your E Series device, and your equipment.
Name Type Description
deviceNumber i16 assigned by configuration utility
channel i16 number of SC-2040 channel you want to
configure; use –1 to indicate all SC-2040 channels
sc2040gain i16 specifies gain you have set using jumpers on the
SC-2040
!