LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

check for empty visa resource?

Solved!
Go to solution

When I am developing the VI at my desk and not a the test station PC, the VISA resource name is empty.

 

Once the VI is moved to the test station PC, the user can select a VXI board.

 

How do I make sure the user has selected a VISA resource before continuing?

 

I can wire a Comparision to check for Empty String, and that works. But is there any method that I should use?

 

 

0 Kudos
Message 1 of 3
(5,101 Views)
Solution
Accepted by topic author nyc_(is_out_of_here)

Try "Not A Number/Path/Refnum"

 

Or just try to open the Refnum and trap for any errors and loop back to have the user select again.

Omar
0 Kudos
Message 2 of 3
(5,098 Views)

Additionally, you can limit the selectable items by interface type. Right-click VISA Resource Name Control and select I/O Name Filtering.

National Instruments
Message 3 of 3
(5,065 Views)