# Module to find all current VISA-compatible devices. import visa as v import string as s ## Use PyVisa to find all visa-compatible devices on usb, com, lpt, gpib connections def FindVisaDevices() : # a is list of strings, one per instrument. Each string contains the connection, vendor id, model number and serial number. a = v.get_instruments_list() print('\nVISA devices found:') print(a) #print('\t' + '\n\t'.join(a)) return a #------------------------------------------------------------------------------- if __name__ == '__main__' : FindVisaDevices()