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
Structures10. 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 .vi14. 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 Channels18. 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 Channels20. 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 .vi24. 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.
Module | IO 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 |