Check Physical Connection of Devices Connected to C-Series Modules

Updated Dec 28, 2023

Environment

Hardware

  • NI-9212
  • NI-9213
  • NI-9218
  • NI-9219
  • NI-9230
  • NI-9232
  • NI-9260
  • NI-9265
  • NI-9269
  • NI-9214
  • NI-9476
  • NI-9478

Software

  • LabVIEW

Driver

  • NI-DAQmx

Operating System

  • Windows

Often we need to investigate about the real connection of physical devices connected to our modules. This can be made by monitoring some properties such as open current or overcurrent, with respect to the module we're using. The manner can be used to check if there are some shorted channels, the latter is used to check the physical connection of the device connected to the module. How can we use them? Please follow the steps below.

Please consider that the Example is developed using NI-9232 module. Check the chart at the end of the page to verify which properties use with respect to the module selected.

In order to complete all the steps you need to have NI-DAQmx installed on your PC.

1. Launch LabVIEW
2. Place DAQmx Create Channel .vi
3. Right click the physical channel terminal and select create a constant/control


4. Select the correct channel relative to the module you are using
5. In the polymorphic selector, select Analog Input >> Acceleration >> Accelerometer
 


6. Place DAQmx Timing .vi and connect it to the DAQmx Create Channel .vi 
 

7. Select a sample mode and a sample rate for the acquisition, right clicking the relative terminals. and creating a constant
8. Place the DAQmx Start .vi 
9. Right click to open the functions palette and click Structures
10. Place a While loop and create a control to stop the cycle
 
11. Place DAQmx Read .vi into the While loop and connect it to the DAQmx Start .vi 
 


12. In the Front Panel, right click to show the control palette and select Graph >> Waveform Chart
 
13. In the Block Diagram, wire the Waveform Chart to the data terminal of the DAQmx Read .vi
14. Place DAQmx Read node and connect it to the DAQmx Read .vi
 


15. Click the element in the DAQmx Read node and select Status >> Overcurrent >> Overcurrent Channels Exist
 
16. Add a new element in the DAQmx Read node by right clicking the element and select Add Element
 
17. Select Overcurrent Channels
18. Create an indicator for both the elements to display the results
 


19. Likewise add other two elements to the DAQmx Read node : Open Current Loop Exist and Open Current Loop Channels
20. Create the indicators to display the results in the Front Panel
 
21. Place the DAQmx Clear .vi outside the While Loop
22. Place the Simple Error Handler .vi to monitor the errors
23. Create a constant right clicking the type of dialog terminal of the Simple Error Handler .vi
24. Select OK Message + Warnings
 
Finally you should have obtained the following .vi
 
Also below is a table of the C Series Modules that support IO Statuses along with the statuses.

 
ModuleIO Status
NI 9212    Open Thermocouple
NI 9213    Open Thermocouple, Common Mode Range Error
NI 9214    Open Thermocouple, Common Mode Range Error
NI 9218    Excitation Fault, Open Current Loop
NI 9219    Overcurrent
NI 9230    Overcurrent, Open Current Loop
NI 9232    Overcurrent, Open Current Loop
NI 9260    External Overvoltage
NI 9265    Open Current Loop, Power Supply Fault
NI 9269    Overcurrent
NI 9476    Overcurrent
NI 9478    Overcurrent, Overtemperature