LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get string array of all serial ports

Hi All,

I am trying to list all the serial ports in my computer, I know I can use the VISA resource name to allow the user to click on the desired port.

My problem is, I am trying to use only system controls on the GUI, and wish to list all the serial ports using a system combo box or something similiar (i.e. I dont want the user to see the VISA resource name).

Surely there must be a way, but I cannot figure out how to do it, how do you get a list of all the items programatically out of the VISA resource name?

Many thanks
nrp
0 Kudos
Message 1 of 3
(2,657 Views)
You can use the VISA Find Resource function. You can specify an expression that will limit the search to com ports and use the search mode input to determine the format of the returned resources.
Message 2 of 3
(2,655 Views)
Sir Dennis,

That is exactly what I was looking for, many thanks!

nrp
0 Kudos
Message 3 of 3
(2,644 Views)