<gh_stars>1-10
import pyvisa
rm = pyvisa.ResourceManager('@py')

inst = rm.open_resource("GPIB0::22::INSTR")

inst.write("END ALWAYS")

print(inst.query("ID?"))

#get reading
print(inst.read())

import pyvisa
rm = pyvisa.ResourceManager('@py')

inst = rm.open_resource("GPIB0::22::INSTR")

inst.write("END ALWAYS")

print(inst.query("ID?"))

#get reading
print(inst.read())
#get reading