10-08-2013 02:11 AM
Hello,
How can I programmically get all available info from Devices and Interfaces of MAX using LV?
I already tried this: http://digital.ni.com/public.nsf/allkb/8532AFF2C7E14F5E86256FEA003E202F
It works for NI instruments. But only for NI.
BR,
Jick
10-08-2013 02:18 AM
Hi Jick,
using DAQmx functions (or property nodes) you can get information on all available DAQmx devices (real or simulated).
To get information on other devices (like GPIB, COM port, etc.) you have to use VISA functions like this one...
10-08-2013 02:29 AM
Thanks GerdW,
Next problem is that VISA Find Resource.vi finds devices which have been installed and present earlier but are not currently present. Is there a way to find out if a device is currently present or should I just do a VISA query individually for all devices found to ensure presence?
BR,
Jick
10-08-2013 02:31 AM
10-08-2013 02:48 AM
Can you upload your find VISA resource VI in 2011.
Thanks
10-08-2013 02:51 AM
Hi,
Why?
Br,
Jick
10-08-2013 03:30 AM
Becasue what I have doesn't show other when not avaiable.
10-08-2013 03:47 AM
10-08-2013 03:51 AM
I could be wrong but for my app, com port comes occasionaly when USB module is connected. Hence in my case it works reliabely.
10-08-2013 01:38 PM - edited 10-08-2013 01:39 PM
I would suggest using NI System Configuration. It should return information for anything that shows up in MAX and it exposes an "Is Present" attribute if you need to detect if something is currently connected.
It includes a LV shipping example called Show All Hardware that you can use as a starting point and you can also use NI System Configuration to rename, self-test, self-calibrate, and reset devices just like you can from MAX.