Agilent Technologies Infiniium 90000 Series Programmer's Manual page 1054

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

Advertisement

38
Sample Programs
# Get the waveform type.
qresult = do_query_string(":WAVeform:TYPE?")
print "Waveform type: %s" % qresult
# Get the number of waveform points.
qresult = do_query_string(":WAVeform:POINts?")
print "Waveform points: %s" % qresult
# Set the waveform source.
do_command(":WAVeform:SOURce CHANnel1")
qresult = do_query_string(":WAVeform:SOURce?")
print "Waveform source: %s" % qresult
# Choose the format of the data returned:
do_command(":WAVeform:FORMat WORD")
print "Waveform format: %s" % do_query_string(":WAVeform:FORMat?")
# Display the waveform settings from preamble:
wav_form_dict = {
}
acq_type_dict = {
}
acq_mode_dict = {
}
coupling_dict = {
}
units_dict = {
}
preamble_string = do_query_string(":WAVeform:PREamble?")
(
1054
0 : "ASCii",
1 : "BYTE",
2 : "WORD",
3 : "LONG",
4 : "LONGLONG",
1 : "RAW",
2 : "AVERage",
3 : "VHIStogram",
4 : "HHIStogram",
6 : "INTerpolate",
10 : "PDETect",
0 : "RTIMe",
1 : "ETIMe",
3 : "PDETect",
0 : "AC",
1 : "DC",
2 : "DCFIFTY",
3 : "LFREJECT",
0 : "UNKNOWN",
1 : "VOLT",
2 : "SECOND",
3 : "CONSTANT",
4 : "AMP",
5 : "DECIBEL",
wav_form, acq_type, wfmpts, avgcnt, x_increment, x_origin,
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents