National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference SCXI_ModuleID_Read
NI-DAQ FRM for PC Compatibles 2-346
©
National Instruments Corporation
30: SCXI-1102.
32: SCXI-1141.
38: SCXI-1200.
40: SCXI-2400.
42: VXI-SC-1102.
44: VXI-SC-1150.
68: SCXI-1120D.
Using This Function
The principal difference between this function and SCXI_Get_Module_Info is that this
function does a hardware read of the module. In contrast,
SCXI_Get_Module_Info returns
the module type stored by the NI-DAQ Configuration Utility.
You can use
SCXI_ModuleID_Read to verify that your SCXI system is configured and
communicating properly. For example, a call to this function at the beginning of your program
ensures that the SCXI chassis is powered on, the SCXI cable is properly connected, and the
module in
moduleSlot matches the module type configured by the NI-DAQ Configuration
Utility.
SCXI_ModuleID_Read returns a positive status code of
SCXIModuleTypeConflictError if the module ID read does not match the configured
module type.
Note
Saving your SCXI configuration in the NI-DAQ Configuration Utility also reads
the module ID from the SCXI module being saved and reports an error if the
module ID read and the module type being configured do not match. The Test
button on the SCXI Devices tab reads the module IDs of all configured modules
and verifies that all the module IDs read from the chassis match the configured
module types.