Programmatically Determining the Slot Number of cDAQ Modules

Updated Jun 5, 2020

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

Other

  • LabVIEW
  • DAQmx
  • cDAQ-9185

Issue Details

How can I determine the slot number of the modules on my cDAQ device?

Solution

There is a property node in LabVIEW that will let you obtain the slot number of each module connected on the cDAQ device. This property can be found under Measurement I/O >> DAQmx - Data Acquisition >> DAQmx Advanced >> DAQmx Constants & Properties >> DAQmx Device Property Node >> Location >> CompactDAQ >> Slot Number.

In order to obtain the slot position for all the modules, the following code may be used as example.