Overview CompactRIO makes remote acquisition and data logging easy! This project demonstrates the acquisition and data logging of Vibration signals with the NI 9233 C-series DSA module.
This example is an adaptation of several shipping examples and is written to use a cRIO-9004 (CompactRIO embedded controller), cRIO-9101 (cRIO 4 slots FPGA backplane), and NI 9233 (4 Ch, 24 bits, IEPE enable DSA module). However, the project could be modified to use any CompactRIO controller and chassis along with a 9233. This example project also highlights several common Real-Time and FPGA programming techniques such as:
Passing data from the FPGA to Real-Time using controls and indicators
Using Interupts to trigger code execution
Starting and Stopping certain C Series Modules
Using property nodes with C Series Modules
Aquiring data from an FPGA using I/O Nodes
Passing data from the FPGA to Real-Time using a DMA FIFO
Converting binary data from C Series Modules to nominal data
Calling into the FPGA from Real-Time
Steps to Implement or Execute Code
Download, unzip, and open the attached project.
If you have an NI cRIO-9004, NI cRIO-9101, and NI 9233 then change the IP adress of the target in the project to match your target and continue to step 5. Otherwise, continue to step 3.
Right-click on the project title, select New >> Target and Devices, and choose your target.
Drag the files from the 9101 target down into their respective locations under your target.
Right click on the deployment target and select connect.
Expand the cRIO chassis, exapnd the FPGA target, expand Build Specifications, right-click on the FPGA build specification, and select build.
Once the FPGA code is finished compiling, open the rt.vi and run it.
Watch the front panel update and click the log button when desired.
After stopping, transfer the file back to the host machine.
Open ViewData, run it, and navigate to the file when prompted.
LabVIEW 2012 or later
LabVIEW Real-Time 2012 or later
LabVIEW FPGA 2012 or later
NI Sound & Vibration 2012 or later
NI 9004 and 9101, or another CompactRIO controller and chassis, and an NI 9233.
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.