ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parse VISA reference name

Solved!
Go to solution

I have a multi channel test setup that uses a serial port for each channel. So I have named the VISA aliases for the channels to DUT-1 through DUT-8. I have a coaxial switch that routes an signal from the current DUT to a freq counter so that I can measure the frequency. The switch has eight positions that use an enum POS0, POS1, .... POS8. I need to translate the Serial port selected to the correct pole on the switch so I made the attached VI. The problem is that it works great when its open but doesn't when it is closed. What can I do to performe this function with a closed vi?

0 Kudos
Message 1 of 3
(2,827 Views)
Solution
Accepted by topic author Viper

Try using "Type Cast" to convert the VISA refnum into a string, instead of the Text.Text property.

Message 2 of 3
(2,818 Views)

That did it. Thanks

0 Kudos
Message 3 of 3
(2,803 Views)