LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect whether the COM Port has been occupied or not?

  I need to detect whether the COM Port has been occupied or not before I use it, but don't know how to do it?
 
 
Thanks!
Jacky
0 Kudos
Message 1 of 2
(3,119 Views)
Couldn't you simply trap if an error occurs on opening? OpenCom and OpenComConfig should return -7 in this case (Cannot open port.).


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 2 of 2
(3,114 Views)