LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI Will Not Abort

Out of the Help guide "All resource strings returned by this function are recognized by VISA Open."

 

Did you use Visa Open to setup a serial connection? If not it won't find a serial connection. Moreover "you might not need to call this function".

0 Kudos
Message 11 of 14
(331 Views)

Rich,

 

This code if for searching for available COM ports to present a list to the user.

 

- Ken

0 Kudos
Message 12 of 14
(329 Views)

If you want to present a list of com ports you can just place a Visa open and Create Control on the input. 🙂

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 13 of 14
(320 Views)

You will still get a delay with an unresponsive VI the first time you click on the VISA resource dropdown. VISA Find Resources has a string input that is a regular expression for limiting the search to com ports for example. You might want to play with that. Also it has a search mode but I don't know what that does - see the help.

 

Regardless, if you use something like VISA Find Resources you should set the busy cursor before calling it and clear the busy cursor after calling it so the user knows the application is busy and has not crashed. I think the cursor functions are under Dialog & User Interface.

 

Edit: Things like this should not be in the UI thread.

=====================
LabVIEW 2012


0 Kudos
Message 14 of 14
(310 Views)