Description
Summary: If serial plotter fails to open due to a busy com port, the IDE "thinks" that it successfully opened even though it never opens up. Serial Monitor can not be opened now because it thinks serial plotter is open, and serial plotter cant open because it thinks it is already opened. Restart IDE to fix problem.
Steps to reproduce:
- Try to open serial plotter on a busy com port
- You will get this error (expected): "Error opening serial port 'COMX'. (Port busy)"
- Now you can no longer open a serial plotter or monitor!
- If you try to open serial monitor, it will give you this error: "Serial monitor not available while plotter is open"
- If you try to open the serial plotter again, you will get no errors.
Restarting the arduino IDE fixes this problem.
How to force a com port to be busy
Method 1: Open another arduino IDE
The easiest way to do this without extra software is to open a second instance of arduino IDE. This should result in two icons in your task bar. If there's just one icon, all the windows will share the same port settings. Open a serial monitor/plotter in the first instance of the arduino IDE. Use the second instance of the arduino IDE for testing mentioned above.
Method 2: Serial terminal (software)
Download a serial terminal (like "Serial Port Monitor" by Eltima Software
Use this to open a com port.