Agilent Technologies Infiniium 90000 Series Programmer's Manual page 1055

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

Advertisement

) = string.split(preamble_string, ",")
print "Waveform format: %s" % wav_form_dict[int(wav_form)]
print "Acquire type: %s" % acq_type_dict[int(acq_type)]
print "Waveform points desired: %s" % wfmpts
print "Waveform average count: %s" % avgcnt
print "Waveform X increment: %s" % x_increment
print "Waveform X origin: %s" % x_origin
print "Waveform X reference: %s" % x_reference
print "Waveform Y increment: %s" % y_increment
print "Waveform Y origin: %s" % y_origin
print "Waveform Y reference: %s" % y_reference
print "Coupling: %s" % coupling_dict[int(coupling)]
print "Waveform X display range: %s" % x_display_range
print "Waveform X display origin: %s" % x_display_origin
print "Waveform Y display range: %s" % y_display_range
print "Waveform Y display origin: %s" % y_display_origin
print "Date: %s" % date
print "Time: %s" % time
print "Frame model #: %s" % frame_model
print "Acquire mode: %s" % acq_mode_dict[int(acq_mode)]
print "Completion pct: %s" % completion
print "Waveform X units: %s" % units_dict[int(x_units)]
print "Waveform Y units: %s" % units_dict[int(y_units)]
print "Max BW limit: %s" % max_bw_limit
print "Min BW limit: %s" % min_bw_limit
# Get numeric values for later calculations.
x_increment = do_query_number(":WAVeform:XINCrement?")
x_origin = do_query_number(":WAVeform:XORigin?")
y_increment = do_query_number(":WAVeform:YINCrement?")
y_origin = do_query_number(":WAVeform:YORigin?")
# Get the waveform data.
do_command(":WAVeform:STReaming OFF")
data_words = do_query_ieee_block_I2(":WAVeform:DATA?")
nLength = len(data_words)
print "Number of data values: %d" % nLength
# Open file for output.
strPath = "waveform_data.csv"
f = open(strPath, "w")
# Output waveform data in CSV format.
for i in xrange(0, nLength - 1):
# Close output file.
f.close()
print "Waveform format WORD data written to %s." % strPath
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
x_reference, y_increment, y_origin, y_reference, coupling,
x_display_range, x_display_origin, y_display_range,
y_display_origin, date, time, frame_model, acq_mode,
completion, x_units, y_units, max_bw_limit, min_bw_limit
time_val = x_origin + (i * x_increment)
voltage = (data_words[i] * y_increment) + y_origin
f.write("%E, %f\n" % (time_val, voltage))
Sample Programs
# Always 0.
# Always 0.
1055
38

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents