Go Down

Topic: Multiple instances of IDE v18 on Windows XP? (Read 1 time) previous topic - next topic


It wasn't uberhund that I was quoting, so I don't think he's the one deleting posts.

Wasn't me!


Mar 07, 2010, 06:27 pm Last Edit: Mar 07, 2010, 10:40 pm by uberhund Reason: 1
My apologies, folks. I did indeed delete some of my posts to shorten this thread before posting my solution. I evidently just made things worse. In any case, I hope the illustrations below help lay out the problem and a remedy.

Let's say I have two Arduinos I want to monitor and edit separately, but also simultaneously. Assume Arduino #1 runs the "Hello World" sketch and is associated by XP with COM12. Arduino #2 runs the "DigitalReadWrite" sketch, and is associated by XP with COM3.

Here's the right and wrong way to do it:
1) Invoke a copy of the IDE, and load the first sketch "HelloWorld," and invoke the monitor. Notice it opens a second window, leaving the original blank for some reason. In any case, it will default to the correct COM port:
2) Now we need to load the "DigitalReadWrite" sketch. However, the mistake I was making was to believe that the new window created when the second sketch is loaded would be independent of the other. It's not. A change in the COM port of one will change the COM port of the other, leading to much confusion and trampling of code.
Here's the wrong way:
3) Instead, invoke a completely new IDE and load the second sketch. In fact, I find it helps to physically position one Arduino on the left of my keyboard, and move the corresponding IDE windows to the left of the screen, while the other Arduino is on the right side of my keyboard and so forth.
It should look like this:
When the IDEs are set up in this fashion, the downloads and monitoring will be completely separate and independent. It's a really terrific way of troubleshooting handshaking between multiple Arduinos.

My apologies to the forum for not getting this sooner, and for the confusing deletes. I hope someone benefits in the long run.

Santanyana was only half right. We are doomed to repeat history with impunity, whether we choose to remember it or not


Mar 07, 2010, 09:11 pm Last Edit: Mar 07, 2010, 09:20 pm by retrolefty Reason: 1
Nice pictures.

My last related response was to your example #2. My point was if you used two instances of a terminal program (like brey terminal) set to different comm ports (which also adds many serial monitoring features) and not use the Arduino serial monitor, you could retain the ability to monitor two Arduino boards with just one instance of the Arduino IDE open, but still with two sketch windows open, and still have the ability to download in the separate sketch windows shown in your example #2. Have you tried that and still find some functionality lost?

My main point is any restriction seems to be with just the behaviour of the serial monitor, not the ability of the Arduino IDE to manage two open sketches under one instance of the IDE. In my test the two sketch windows retained their unique comm port assignments. Only the serial monitor, which cannot seem to have two instances open and attached to each sketch, seems to create a problem. Am I correct or missing something?

Either way, I have found that the Arduino serial monitor has such limited capablities, that I use brey terminal even when just working with one sketch for only but the most limited serial monitoring tasks.



Thanks for the clarification, Lefty. And for the tips. I believe we can file this thread under "solved."
Santanyana was only half right. We are doomed to repeat history with impunity, whether we choose to remember it or not

Go Up