Releasing computer serial port for other test applications

Our Arduino project uses a serial console output for test validation, we were looking to use that with our LabVIEW test application and are having problems.

Example Procedure:

  • Verify & upload INO sketch
  • Open Arduino 'Serial Monitor' to observe sketch console output (e.g. "COM1")
  • Close Arduino
  • Open LabVIEW test application to watch same port ("COM1")

Problem:

  • LabVIEW shows this port as not available

Current Solution:

  • Rebooting PC solves this problem

Rebooting is a heavyweight solution to switch apps, can we release the COM port by Arduino for use elsewhere?

After shutting down Arduino IDE.
Unplug the Arduino.
Plug in the Arduino.

see if that works.

Check in Device Manager which port is in use by the Arduino Uno.

Open that port in LabVIEW or any other application that wants to communicate with the Arduino.

.

ieee488:
After shutting down Arduino IDE.

Isn't it sufficient just to close the Serial Monitor?

...R

Robin2:
Isn't it sufficient just to close the Serial Monitor?

...R

It should be, but he is reporting that it isn't sufficient.

I find that LabVIEW newbies and Arduino newbies are often "confused". :wink:

.

Oh my goodness fixed now - I forgot to close the serial port in the test app, sheesh!! My apologies. With this bug (LabVIEW app) resolved the serial operations now work to full specification, this unit is working great.

I would consider to quell the newbie mantra and parol on these forums, I've been teaching this stuff awhile now and here was a laughable mistake, in a detailed graphical environment that was quickly fixed. Thank you guys for the help!

-Justin

*I love Robin2's signature to note, agreed!

justinmreina:
Oh my goodness fixed now - I forgot to close the serial port in the test app, sheesh!!

Been there. Done that (lot's of times).

Welcome to the club :slight_smile:

...R