From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA and error message display

HI..

I'm using VISA config in d beginning of my VI. I have set VISA resource name as COM3. I want to popup a message if COM3 doesn't exist in my computer. how can i implement that...???

 

Thank you...

0 Kudos
Message 1 of 2
(1,961 Views)

The is a function called VISA Find Resources (from memory, I don't have LV on this PC). The output of the function is a string array of the resources found. You can search this array for a COM3 port using the Search 1D Array function followed by a case structure containing the popup in the case COM3 is not found (find index = -1).

 

Ben64

Message 2 of 2
(1,958 Views)