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.
