02-24-2011 01:11 AM
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
Solved! Go to Solution.
02-24-2011 01:54 AM
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
02-24-2011 02:12 AM
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?
02-24-2011 02:19 AM
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.
02-24-2011 02:28 AM
Thanks again.
That example does retreive the Name of the come port.
Best Regards
Shakeel