LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI device Detection

I am working on PXI rack and have an external controller.

All my devices are connected through PCI bus.

The way "Find VISA Resource vi" gves all the PXI devices is there a
similar vi that gives all the CI devices connecte.

Thank you

0 Kudos
Message 1 of 5
(3,152 Views)

Hi,

 

You can use the DAQmx System property node with the Device Names property selected to retrieve a list of the device names of all of your Devices and Interfaces that show up in MAX. 

 

I hope this helps!

 

Ed W.

0 Kudos
Message 2 of 5
(3,131 Views)

Only if you wait long enough after Windows startup...

I just tried putting my app in the Windows startup folder, and I don't get the proper device list - apparently DAQmx is still busy doing other things.  I had to add a long delay at the beginning of my program to rectify the situation, although I am not comfortable with that non-deterministic approach.  DAQmx badly needs an Initialized, or Ready, property.  Even when not in the startup folder, I have had problems when I manually start a program once I am able to double-click on the icon after Windows startup.

0 Kudos
Message 3 of 5
(2,977 Views)
Hello Wired,
 
This is probably happening because the Measurement and Automation Explorer database hasn't started when your startup application runs.  Rather than just adding a long delay there should be a task you can poll to see if the database is ready using the system task manager.  I will look around and see if I can find the specific task to look for and post back what I find out.
 
Cheers,
Brooks
0 Kudos
Message 4 of 5
(2,947 Views)
Brooks,
 
No need for that - I already have a workaround suggested by NI apps engineering - I am periodically querying the DeviceNames property of DAQmxSystem until I see it populated.  Although this is OK for my particular app (because I know I must have one DAQmx device in my chassis) it would not work for a more general querying solution.  I think NI should look into making some type of 'Device List Ready' function in a future release.
0 Kudos
Message 5 of 5
(2,943 Views)