What is the best way to fix the com number for Arduino-PC connections?

Hello,
My goal is to make an Arduino data collection adapter that connects via USB to a PC (windows). When I connected it to another USB port on the PC or/and used another Arduino board, the com number on the PC changed.

To collect the data from this Arduino, I plan to write a PC program (python, matlab or labview). Is there a way to fix this com number, so everytime when I plug it in, the PC program can correctly identify this device and connect to it.

No and it depends so much on the PC configuration (USB hubs, ...) ... you should make your PC program smart enough to auto detect which port is used or offer a small UI / configuration file to select the right port.

Maybe you should ask @joedodo in How to fix the com number for arduino-pc connection?

You might/should be able to write your pc code to look for the next available port after com1 and connect to it .?

@oliverjames07207 Are you and @joedodo working on the same project because you have both posted remarkably similar topics

See How to fix the com number for arduino-pc connection?

@oliverjames07207

This topic has been closed until I find out what is going on
PM me if you want it opened again