Text-Based Programming on the CompactRIO

Updated Oct 30, 2019

Reported In

Hardware

  • cRIO-9046
  • cRIO-9042
  • cRIO-9045
  • cRIO-9047
  • cRIO-9043
  • cRIO-9048
  • cRIO-9049
  • cRIO-9041
  • cRIO-9053
  • cRIO-9054
  • cRIO-9055
  • cRIO-9056
  • cRIO-9057
  • cRIO-9058
  • sbRIO-9637

Issue Details

  • Is it possible to program the CompactRIO using the C/C++ DAQmx API? What software do I need to accomplish this?
  • Can I use a Text-based programming language to program my CompactRIO?

Solution

For DAQmx:            Implementation of NI-DAQmx is the same as other text based programming environments

For programming the Real-time Controller:
  • Programming the cRIO-904x uses the same method as programming a Linux Real-Time integrated controller. NI recommends using Eclipse, a C/C++ Development Tool for NI Linux Real-Time. Instruction guides online walk through how to install and use the Eclipse environment. 
  • The cRIOs that runs Linux real time can also be programmed using the Python FPGA API
Note: To create a complete application where the real time controller has access to the hardware I/O you will require to program the embedded FPGA. In order to program the FPGA you can only use the LabVIEW FPGA module.


If you are new to programming in an embedded system, first learn about general methods and other tools that are available.