pyvisa

PyVISA SCPI commands and queries (issue with value update)

穿精又带淫゛_ 提交于 2019-12-08 11:13:10
问题 UPDATE: It seems to be working "OK" this am... although I am not sure why certain replies have /r/n at the end and why certain don't. I have explicitly turned Handshaking OFF... An example of the commands, queries, and replies is posted below. **I am using PyVISA frontend to communicate with a sensor. I am having to have to send a command or make a query three times before there is a change in the output... Do I have to add wait command before proceeding? I thought the SCPI commands were

pyVISA: Return instrument to local mode programmatically

半腔热情 提交于 2019-12-07 17:07:35
问题 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

pyVISA: Return instrument to local mode programmatically

人走茶凉 提交于 2019-12-05 19:31:38
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 this particular case I only want to control one instrument in the network, but need the others to be