09-21-2015 09:37 AM - edited 09-21-2015 09:40 AM
Hello,
i want to show at system start a list of the active hardware devices (cDAQ-9188 and modules). I know there are a few of knowledge bases.
My problem is that on the one side all of the hardware from MAX is shown or on the other side (if i disconnect the devices) the list is'nt updated an i see the same list (devices that are'nt connected).
Some keywords are: system hardware, daq system.
Using LV2014.
greetings
Schwede
09-21-2015 09:45 AM
Are you asking how to check for the devices, or about a programming setup to continuously check the connected devices?
Do you have code already that's not working properly?
Have you tried using the DAQmx System node DevNames property?
P.S. The forum allows these handy "Tags" which act as keywords.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
09-21-2015 09:55 AM
The program is a test sequencer. At the first start it should scan the active, connected and powered measure devices.
I have tried to use the DAQSystem node DevNames (and the example), but if I disconnect one or all devices the list is the same.
The keywords are the examples I have tried.
09-21-2015 10:06 AM
Ah, example keywords. Gotcha.
So just to cover all of the bases here, when you say disconnect, are you removing the device from the network? Disconnecting the ethernet cable?
Are you using the examples unchanged and just running them over and over? Which examples exactly? The keywords lead to multiple examples.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
09-21-2015 10:11 AM - edited 09-21-2015 10:12 AM
The list refreshes correctly for me using the following code:
(For me it lists my 3 simulated devices and when I connect/disconnect a USB-6001 that then shows up / disappears from the list - I don't have any ethernet DAQ devices on my system though like an ethernet cDAQ - perhaps for that you can use the System Configuration VIs?)
09-22-2015 12:15 AM
Thank's for your answers.
I have tried this:
http://www.ni.com/example/30954/en/
And it works with USB - devices, but not with my NI cDAQ-9188.
The System Configuration doesn't work too:
https://decibel.ni.com/content/docs/DOC-29606
I think there must be an command/block/vi to refresh the network devices. I have tried a selftest on every found device, but it is very slow.
09-22-2015 10:15 AM
I remember being frusted with the network discovery for cDAQ hardware at one point. We had N networked cDAQ devices on a bus and didn't know how many or what the IP address was. But we knew the range of IP address it could be. All chassis had a unique IP something like 192.168.1.xxx. So I found some software that would ping many IP address quickly and at once. Again because the NI and even commandline ones are quite slow.
http://forums.ni.com/t5/LabVIEW/Discover-cDAQ-Ethernet/m-p/2817584#M824878
Edit the IPs.txt in that after extracting the zip to a folder and it should return which IPs it found. It would take less than a second to scan the network with this method, where the other methods were upwards of 50 seconds.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord