This content is not available in your preferred language.
The content is shown in another available language. Your browser may include features that can help translate the text.
There's three ways to use your CompactRIO system to generate and acquire signals from its C series modules:
Follow the Acquire and Analyze Signals With LabVIEW Real-Time tutorial to get started with data acquisition using the Scan Mode. Please note that for output modules, the module's nodes will have an input terminal, instead of an output terminal, so you can write the output values directly to them.
Image: On the left, the target with its modules in the project explorer. Note how the modules are in the same level as the FPGA target. In the right is the block diagram, in which an analog output value is written to one of the module's terminals, and both an analog input and digital input values are being read back in the processor.
Follow the Getting Started With LabVIEW FPGA tutorial to see what it’s like to program in LabVIEW FPGA, and implement basic tasks using analog and digital I/O.
Image: On the left, the target with its modules in the project explorer. Note how the modules are inside the FPGA target's hierarchy. In the right is the block diagram, in which an analog output value is written to one of the module's terminals, as well as a digital output boolean. There are also an analog input and digital input values being read back in the FPGA.
*Note: DAQmx is not supported in all CompactRIO controllers. More information here: NI-DAQmx on the CompactRIOFollow the Using CompactRIO with the NI-DAQmx API tutorial to set up a simple acquisition using the NI-DAQmx API.
Image: On the left, the target with its modules in the project explorer. Note how the modules are inside Real-Time Resources section. In the right is the block diagram, in which the DAQmx API is used to read the voltage input from 4 analog channels from module number 2 at 1000 Hz.
Find in the next table the main differences between Scan Mode, and the FPGA Interface:
Review the C series modules compatibility with Scan Mode, FPGA, and DAQmx in the following document: C Series Module Compatibility ChartCheck out the NI LabVIEW for CompactRIO Developer's Guide for more information about programming best practices, and answers to the common development questions in the platform.
Thank you for your feedback.
You changed your response to Not Helpful
You changed your response to Helpful
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.