Hello,
For assistance on programmatically determining device numbers, you may want to look at the LabVIEW Example that I have attached to this posting.
This code programmatically finds NI-DAQ devices and returns their name and device number to LabVIEW. This code would be useful in distributed applications when the programmer knows what type of hardware the user has but is unsure of the Device Number assigned to it in MAX. It could also be used as an error check in code on a computer that has its hardware configuration changed often to do different tests, or for any other purpose where the hardware configuration is unknown to the user before running the program.
It was written in LabVIEW 6.0.2, with NI-DAQ 6.9.3
Regards,
Jared A