LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Serial port description With out Visa Intrument

Solved!
Go to solution

Hi All

 

How can i get the description of a serial port ? eg. Communications Port (COM14)

I currently use the VISA Instrument but there is a big over head for the release, 65mb over head.

I would like to list all the available port for the user to select.

 

Thanks

Shakeel

Help share your knowlegde
0 Kudos
Message 1 of 5
(3,585 Views)

Hi Shakeel,

 

I've found attached files years ago 😉

Have a look, may be a solution for your problem. After the detection you could use the RS232-functions.

 

WTD

0 Kudos
Message 2 of 5
(3,574 Views)

Thanks.

It helps in getting the com ports.

But my problem is get the description of that com port.

I got a USB which reads as a com port and the user wont know which com it is.

Is there a way via the registry or any other way to get the description of the com port?

 

Help share your knowlegde
0 Kudos
Message 3 of 5
(3,564 Views)
Solution
Accepted by topic author Shako

You may find useful resources in this code published by Martin some time ago. Original code returns only the port number, but running it step-by-step you can find the point in which the text description of the device is found and use it.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 4 of 5
(3,562 Views)

Thanks again.

That example does retreive the Name of the come port.

 

Best Regards

 

Shakeel

Help share your knowlegde
0 Kudos
Message 5 of 5
(3,559 Views)