How Do I Add NI-DAQmx Task to CompactRIO LabVIEW Project?

Updated Mar 1, 2024



  • CompactRIO Controller


  • Measurement & Automation Explorer (MAX)
  • LabVIEW


  • NI-DAQmx

Operating System

  • Windows

CompactRIO with NI-DAQmx is the latest addition to the CompactRIO controller family. It brings two software experiences into one by combining the ease-of-use of NI-DAQmx and the low-level functionality of LabVIEW FPGA.
NI-DAQmx is compatible with the cRIO-904x and cRIO-905x families of controllers.

  1. Create a NI-DAQmx Task under the CompactRIO by going to NI-MAX than Remote Systems under which you will see cRIO controllers connected to your computer. Choose the desired one and go to the Data Neighborhood tab. Right-click on it and choose to Create New. Doing so will cause the window shown below.CreateNIDAQmxTask1
  2. Choose NI-DAQmx Task and configure it by following this KB: Create Tasks for Ni-DAQmx Device in NI-MAX to achieve the state below.CreateNIDAQmxTask2
  3. Go to the CompactRIO module for which you created a task under the NI cRIO-90xx and choose the Program Mode to Real-Time (NI-DAQmx) as shown below.  ProgramMode
  4. Create and configure the LabVIEW project by following points 1-3 from this manual: Configuring a Project for a CompactRIO Reconfigurable or Integrated System (FPGA Interface) to achieve the state shown below please also create a New VI under your CompactRIO target by right-click on it and choosing New>VI.
  1. Connect your PC to the CompactRIO target and place DAQmx Task in your program.
           Now you will be able to choose created before NI-DAQmx task. 
Warning: Drag and drop NI-DAQmx tasks is not working with CompactRIO targets as it works with CompactDAQ device.