I am developing in Python, and sometimes the code I am writing will fail to execute properly, leaving a com port open. The only way I can access that port again is to reboot the computer! Is there a way of closing an opened com port?
Thanks
Simon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Apologies, but I have a little problem.
I am developing in Python, and sometimes the code I am writing will fail to execute properly, leaving a com port open. The only way I can access that port again is to reboot the computer! Is there a way of closing an opened com port?
Thanks
Simon
Windows will close com port on finishing process that opened it.
So to close com port you need to kill process that execute you Python code.