LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

A "VISA Resource Name" control

Solved!
Go to solution

In LabVIEW there is a"VISA Resource Name" control which lists all the VISA resources, is automatically updated when devices are plugged or un-plugged, and has a Browse functionality.

With CVI you can use NIDAQmx_NewDeviceCtrl( ) on a string control, but this lists only the DAQmx resources.

Is there another function I can use to have all the VISA resources listed?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 4
(4,077 Views)

there is the function viFindRsrc which you can use to programmatically find all available resources, see here

0 Kudos
Message 2 of 4
(4,071 Views)

there is the function viFindRsrc which you can use to programmatically find all available resources.

I didn't write in my post, but I've already looked at this function.

The problem is that I have to write code to update the VISA resource list, periodically calling this function.

I prefer an automatic function.

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 4
(4,065 Views)
Solution
Accepted by topic author vix

Hi Vix,

it seems to be the only solution. Here you can find also an example.

Hope it helps!

Bye,

 

Licia

0 Kudos
Message 4 of 4
(4,042 Views)