LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically getting MAX devices and interfaces info

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

0 Kudos
Message 1 of 15
(5,805 Views)

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 15
(5,801 Views)

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

0 Kudos
Message 3 of 15
(5,796 Views)

Hi Jick,

 

VISA finds all possible ports (like COMx) even when there is no device connected. Yes, you should query each found port...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 15
(5,793 Views)

Can you upload your find VISA resource VI in 2011.

 

Thanks

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 5 of 15
(5,783 Views)

Hi,

 

Why?

Br,

Jick

0 Kudos
Message 6 of 15
(5,781 Views)

Becasue what I have doesn't show other when not avaiable.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 7 of 15
(5,765 Views)

Hi Ranjeet,

 

then why don't you show your VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 15
(5,757 Views)

I could be wrong but for my app, com port comes occasionaly when USB module is connected. Hence in my case it works reliabely.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Message 9 of 15
(5,754 Views)

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. 

 

 

 Screen Shot 2013-10-08 at 1.36.27 PM.png

Message 10 of 15
(5,730 Views)