How do I "fix" a sketch to a specific COM port

I'm running Windows 8.1 and the latest IDE.

When I load the IDE, 3 tabs(?) come up with 3 different sketches (just as I want it) :slight_smile: I use CTRL-Q to close down so the IDE remembers all my sketches loaded/open....

COM 06 and COM11 are 12 LED module clocks, COM10 is a 24 LED module scroller sketch and COM15 is a 4 module by 4 module LED display (32 LEDs by 32 LEDs). (Yes, 64 8X8 LED modules up and running at the same time. One clock (on a Nano) on desktop USB power and the other 3 Nanos on external power (5V pin)) :smiley:

When the IDE first comes up ALL sketches are connected(?) to COM06 (which is the first clock) even though it displays ALL 4 COM ports available to the IDE. If I want to upload the clock sketch to the second clock I can change the port to COM11 but this now connects ALL sketches to COM11.

I sometimes load a 4th sketch and that adds another COM port to the confusion :frowning:

I seem to remember that if I load individual IDEs then it will allow me to assign different ports to each sketch but that is tedious having to fire up the IDE 4 times and load 4 different sketches. The way I have it setup it loads 3 (or 4) sketches as the IDE comes up :slight_smile:

Is this an inherent function of the IDE with multiple sketches open? Or is there a way I can connect each sketch to their individual COM ports? I realise the 2 clocks connected to the same sketch WILL be a challenge but the other 2 sketches?

Also, when they are ALL displayed connected to ONE port is there anyway of finding out which Nano is connected to which port?

The arduino does not control what "COM port" it gets connected to.

Something in the computer does that, and in my experience the apparently capricious performance of that is very annoying.

If you use AtmelStudio, and the VisualMicro plugiin, instead of the (dreadful) Arduino ID, each sketch is associated with its own COM port.

Regards,
Ray L.

Learn something new everyday.... I didn't realise I had the option other than the IDE.....

Will have to research the suggested options.... :smiley: