​import pyvisa rm = pyvisa.ResourceManager() addresses = rm.list_resources() instruments = [] #The addr will list the address of all the instruments connected via GPIB. for addr in addresses:   print(f'Address: {addr}')   try:        inst = rm.open_resource(addr)        #Add any read command inside the query() for the instrument you have connected.         print('         ' + inst.query('*IDN?').strip())        #Add any write command inside the write_ascii_values() for the instrument you have connected.          your_values = list(range(100))         inst.write_ascii_values('WLISt:WAVeform:DATA somename,', your_values)   except:       print('         Instrument not found.')