pyVISA: Return instrument to local mode programmatically
问题 I am using pyVISA to control some instruments in a GPIB network. When I create a resource manager, all the instruments in my GPIB network enter remote mode, so the front panel displays are locked and do not update. When I close the resource manager, the instruments remain in remote mode. import visa rm = visa.ResourceManager() #Connect to a specific instrument MyInstrument = rm.open_resource('GPIB0::10::INSTR') #Do stuff print(MyInstrument.query("*IDN?")) #close resource manager rm.close() In