LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I scan and detect the NI PCI devices present in the system like 4060 DMM and PCI 6511 etc?

Hi there,
 
I would like to scan the devices present in the system every time when the software starts.
This will help me to prompt user if a particular device is not present or is bearing a different device number than the one used in the software.
For this system I'm using PCI4060, PCI 6511 and DIO96. I am using LV7.0 and Win 2K & XP.
Thanks in advance for your help.
 
_Deepu
 
0 Kudos
Message 1 of 6
(3,483 Views)

Hi,

you can make a scan of all the Daq devices by using the function: Get DAQ Device Information.vi that you find under the: Traditional Daq - calibration configuration palette.

See BD image attached. It scans for 16 devices and return a list of the found.

This seems to work only for Traditional Daq-compatible devices, no problem for PCI 6511 and DIO96.

I don't know if it works for the multimeter also; if not, you can make a basic call to the device at the beginning of the program and check for errors.

Alberto 

 

Message 2 of 6
(3,475 Views)

Hi Alberto,

Thanks for your solution. It was useful for acquiring info about DIO96 and DMM4060. It didn't work for 6511. I think the reason could be that the 6511 is configured as a DAQmx device.

Anyone knows how would I do the same for DAQmx device?

Thanx!

0 Kudos
Message 3 of 6
(3,465 Views)

Hi again,

for a Daq-Mx device you can get the name by the Daq-Mx property that you can find under the Daq-Mx advanced - system setup. See BD image.

Actually it returns also the serial number, and this may be very interesting for hardware checking.

Alberto

Message 4 of 6
(3,458 Views)
Hi Alberto,
 
That was really useful. Only thing is that when I put it into a loop, if the device is not present for a particular dev ID, it returned previous device name. This was able to solve by checking the error.
 
Thanks a lot for the solutions!
 
0 Kudos
Message 5 of 6
(3,445 Views)

Hello,
Here is another way you could do it, without worrying about getting errors.

-Alan A.

Message Edited by Alan A. on 08-26-2005 09:47 AM

0 Kudos
Message 6 of 6
(3,424 Views)