Agilent Technologies Infiniium 90000 Series Programmer's Manual page 1107

Oscilloscopes
Hide thumbs Also See for Infiniium 90000 Series:
Table of Contents

Advertisement

for i in xrange(0, len(values) - 1):
f.close()
print "Waveform format BYTE data written to waveform_data.csv."
# =========================================================
# Send a command and check for errors:
# =========================================================
def do_command(command, hide_params=False):
if hide_params:
else:
Infiniium.write("%s\n" % command)
if hide_params:
else:
# =========================================================
# Send a query, check for errors, return string:
# =========================================================
def do_query_string(query):
if debug:
result = Infiniium.ask("%s\n" % query)
check_instrument_errors(query)
return result
# =========================================================
# Send a query, check for errors, return values:
# =========================================================
def do_query_values(query):
if debug:
results = Infiniium.ask_for_values("%s\n" % query)
check_instrument_errors(query)
return results
# =========================================================
# Check for instrument errors:
# =========================================================
def check_instrument_errors(command):
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
time_val = x_origin + (i * x_increment)
voltage = (values[i] * y_increment) + y_origin
f.write("%E, %f\n" % (time_val, voltage))
(header, data) = string.split(command, " ", 1)
if debug:
print "\nCmd = '%s'" % header
if debug:
print "\nCmd = '%s'" % command
check_instrument_errors(header)
check_instrument_errors(command)
print "Qys = '%s'" % query
print "Qyv = '%s'" % query
38
Sample Programs
1107

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents