Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Determining what serial ports my devices are connected to

Hey,

I currently have multiple devices hooked up to multiple serial ports, and realized when I went to start programming that I wasn't sure what exact COM ports the serial devices were.  Is there an easier way to determine which COM port is used for each device, or do I have to do a trial-and-error, connecting one at a time and testing each port to see if it is connected to anything?

Thanks for the info.
0 Kudos
Message 1 of 3
(3,331 Views)

If these instruments support *IDN? you could issue that command and read back that value for each port.
If an instrument does not understand this basic command they often return a measurement value and that also could give a clue which instrument is that one.

(you schould in fact issue *IDN? CR LF
  where CR and LF are each one byte )

 

greetings from the Netherlands
0 Kudos
Message 2 of 3
(3,326 Views)
Sounds like a plan.  Thanks again for the help.
0 Kudos
Message 3 of 3
(3,322 Views)