Like the attached then?
Exactly.
I didn't know the different comport types might be an issue.
Depends, using GPIB is the safe way.
The actual internal porttype names are: None, Serial, SerialFixedBaud, SerialNoBaud, SocketAuto, Socket, LXI, USBHID, GPIB, UDP, Modbus, Dummy
Upper/Lower case do also matter when using == to compare.