import visa
rm = visa.ResourceManager()
print(rm.list_resources())

inst = rm.open_resource('ASRL1::INSTR')
print(inst.query("*IDN?"))

# inst = rm.open_resource('TCPIP0::172.16.17.32::inst0::INSTR')
# print(inst.query("*IDN?"))

# inst = rm.open_resource('TCPIP0::192.168.127.12::inst0::INSTR')
# print(inst.query("*IDN?"))
