LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to automatically find daq device name?

Hi , I have designed an experiment using LabVIEW and NI ELVIS II Board . I have used DAQmx and NIELVISmx functions in this vi  but every time I run this vi I need to set the device name manually and this device name might be different from one ELVIS board to another ELVIS board. For example for one board it might be Dev1/ai0 and for the other one it might be Dev4/ai0 so before running my code I need to set all the device names one by one. Now I would like to know is it possible to change the code to automatically find the device?

0 Kudos
Message 1 of 3
(3,737 Views)

Hello Tintin99,

 

There is a daqmx property called as "Device Names". This returnes the names of all the DAQ devices connected to the system. You can use this property to identify the device name programmatically.

 

You can have a look at the example at the link given below to see how it works.

http://zone.ni.com/devzone/cda/epd/p/id/1674

 

Hope this will help.

 

Regards,

Hardik Asawa

Certified-LabVIEW-Associate-Dev_rgb.jpg

 

0 Kudos
Message 2 of 3
(3,715 Views)

It is also discussed in this thread

-----

The best solution is the one you find it by yourself
0 Kudos
Message 3 of 3
(3,699 Views)