How to query a port serial com to determine if it is already open?

I would like to ask a COM port to see if it has already been opened by another program, and then select another Com port if the original choice was already open.

What language and api do you use? With LabVIEW and VISA, when you open a port, and it's in use, you will get a specific error (I don't remember the exact error code). Look for this error code.

The VISA is-1073807246 error

Tags: NI Hardware

Similar Questions

Maybe you are looking for