LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh COM Ports without NI Max?

Hello, 

Is there a way to get the available COM ports in the VISA resource drop down to refresh when you click refresh?  (in other words, to get the refresh button to work...)   The only way I'm able to do it is by opening MAX each time I connect or remove a com port.   I'm trying to build an executable so this is not a solution. 

 

I did find the thread below and, as instructed, tried using a delay and then the "find resource" function, but the com ports still don't refresh.  Is there a way I can wire the strings found by the 'find resource' function to the 'visa resource name' function?  Since they're different data types, I'm not sure how to approach this.  And if it matters, I'm using NXG.   Thanks for your help!!!

 

https://forums.ni.com/t5/LabVIEW/VISA-resource-name-control-want-to-refresh-list-of-COM-ports/td-p/1...

 

 

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

Is it possible for you provide the code that you currently have right now? It might be a lot easier to give you tips if we can see your implementation.

Marco C.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(2,086 Views)