Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Id appropriate Dev number for daq 6008

Solved!
Go to solution

 Hi guys,

 

I'll try keep it simple and sweet, Im using a NI DAQ device and I want to automaticall identify the correct DAQ instead of using a control to specify the dev number, plug and play kinda thing.  Im using the daqmx library to communicate with the DAQ in visual studio and im coding the programme in visual basic

 

thanks in advance 

0 Kudos
Message 1 of 3
(2,653 Views)
Solution
Accepted by topic author ecleary

Hi ecleary,

 

Is the DeviceID Property (e.g. dev0) the one you are looking for?

http://zone.ni.com/reference/en-XX/help/370473H-01/mstudiowebhelp/html/8f0b8214/

 

Or by dev number, do you mean device serial number i.e. the one that is unique to each device?

http://zone.ni.com/reference/en-XX/help/370473H-01/mstudiowebhelp/html/db03a656/

 

 

Hope this helps!

 

Best regards,

 

LeahE

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

yer nah thats not it, the Dev number is the bame attched to the DAQ in Ni Max, say you have two identical DAQ's then one will be Dev1 and the other will be Dev2.  The id functions you've give there would be the same as sending the ASCII command idn? which would give you the make and model of the device.  How and ever never mind Ive checked all the computers the device will be running and none of them will have any other NI instruments in the network so it will always be Dev1

 

Problem solved. thanks for the reply LeahE

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