LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I determine available COM-ports in LabVIEW 7?

Hi!

I need a nice and easy way to determine available COM-ports from my LabVIEW
application?



Best regards

Thomas Gajda Joergensen
YORK Marine & Controls
0 Kudos
Message 1 of 5
(6,253 Views)
Hi

Take the "Visa Resource Name" Control.
On the front panel -> all controls -> I/O -> Visa Resourse Name.

You will have a pull down menu which lists all available COM (and LPT ports). These are derived from the settings in the Measurements and Automation Explorer.

I hope this helps,
Michiel.
0 Kudos
Message 2 of 5
(6,253 Views)
Hi Michael!

Thank you for your answer. I think I did not express myself clear enough so
I will rephrase my question:

How do I determine the available COM-port at runtime? I need to get a list
of available COM-port programatically (or what it is called in english)....

Thomas

"MVestjens" wrote in message
news:506500000005000000B9660100-1078497998000@exchange.ni.com...
> Hi
>
> Take the "Visa Resource Name" Control.
> On the front panel -> all controls -> I/O -> Visa Resourse Name.
>
> You will have a pull down menu which lists all available COM (and LPT
> ports). These are derived from the settings in the Measurements and
> Automation Explorer.
>
> I hope this helps,
> Michiel.
0 Kudos
Message 3 of 5
(6,253 Views)
Use "VISA Find Resource" that outputs a string array of available resources. In a loop, open the resources and read the "Interface Information>Interface Description" VISA property node. Parse the description string for the occurence of "COM" to find serial ports.

However, "VISA Find Resource" won't output serial ports that are currently in use by other application.


LabVIEW, C'est LabVIEW

Message 4 of 5
(6,253 Views)

Worked like a charm! thank you very much!

0 Kudos
Message 5 of 5
(5,317 Views)