How to Quickly Test a CompactDAQ Device in LabVIEW

Updated Jul 22, 2022

Environment

Hardware

  • CompactDAQ Chassis

Software

  • LabVIEW

Driver

  • NI-DAQmx

I'm trying to use a NI cDAQ-9189 device. NI MAX shows the device as all ok and I can run the self-test. However I am trying to use the CompactDAQ with LabVIEW but I am not sure on how to do so. Are there any quick guides I can follow?

As NI Measurement & Automation Explorer (MAX) shows the device, it is installed correctly and is ready to be used with LabVIEW.

An easy way to use the device in LabVIEW is utilizing an example of LabVIEW's Example Finder. Follow these steps to do so:
  1. Determine which hardware module type(s) are installed in the DAQ device. Typically there will be at least one Analog Input, Analog Output, Digital Input, or Digital Output module. They are marked "AI", "AO", "DI", or "DO" at their front's bottom:  
  1. Locate the cDAQ in NI MAX, and note its name. A newly installed device typically has a name like "cDAQ1":
  1. Open LabVIEW. 
  2. Go to "Help » Find Examples..." to open the Example Finder.
  3. Navigate to an example that matches one of the module's types from step 1 above, e.g. Task » Hardware Input and Output » DAQmx » Analog Input » Voltage - Finite Input.vi. Other suited examples are (... » Analog Output » Voltage - Finite Output.vi, ... » Digital Input » Digital - Finite Input.vi, or ... » Digital Output » Digital - Finite Output.vi).
  4. Open that example VI.
  5. On the VI's Front Panel, you'll see the Channel Settings section top left. Open the corresponding drop down menu.
  6. You should see the channels with the device's name from step 2 here. You might have to click "Browse...".
 
  1. You can now execute the example VI to perform the input or output task specified by the example VI you chose.