Technical data
Common Commands 13
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 235
Infiniium = visa.instrument("TCPIP0::130.29.71.191::inst0::INSTR")
Infiniium.timeout = 20
Infiniium.term_chars = ""
Infiniium.clear()
# Save oscilloscope setup.
sLearn = Infiniium.ask("*LRN?\n")
check_instrument_errors()
f = open("learn.stp", "wb")
f.write("%s\n" % sLearn)
f.close()
print "Learn string bytes saved: %d" % len(sLearn)
# Restore the default setup.
Infiniium.write("*RST\n")
# Set up oscilloscope by loading previously saved learn string.
sLearn = ""
f = open("learn.stp", "rb")
sLearn = f.read()
f.close()
Infiniium.write("%s\n" % sLearn)
check_instrument_errors()
print "Learn string bytes restored: %d" % len(sLearn)
See Also :SYSTem:SETup command and query. When HEADers is ON and LONGform
is OFF, the :SYSTem:SETup command performs the same function as the
*LRN? query. However, *LRN and SETup block setup data are not
interchangeable.
NOTE
*LRN? Returns Prefix to Setup Block
The *LRN? query always returns :SYST:SET as a prefix to the setup block. The
:SYSTem:HEADer command has no effect on this response.