Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5417

Finding COM port number programatically.

$
0
0

Hi All,

I am sure, many developer might have faced this similar issue.  If any one knows the answer please share with me.

 

I know that when a device (serial or USB) is plugged into a computer, the computer automatically assigns a COM port number and next time if we pluged in the same device and if the previously assigned COM port is already engaged it will assign another COM port.

 

Obviously I cannot change my program all the time.  What is the generic way to find the COM port assigned to a partcular device programatically ?

NOTE : I am not using NI-VISA.

 

I want to find out the COM number programatically and  update in my program.  Please help me.

 

Thanks and regards,

Rahul.

 


Viewing all articles
Browse latest Browse all 5417

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>