Agilent Technologies InfiniiVision 3000 Programmer's Manual page 1127

X-series
Hide thumbs Also See for InfiniiVision 3000:
Table of Contents

Advertisement

do_command_ieee_block(":SYSTem:SETup", setup_bytes)
print "Setup bytes restored: %d" % len(setup_bytes)
# Capture an acquisition using :DIGitize.
do_command(":DIGitize CHANnel1")
# =========================================================
# Capture:
# =========================================================
def analyze():
# Make measurements.
# --------------------------------------------------------
do_command(":MEASure:SOURce CHANnel1")
qresult = do_query_string(":MEASure:SOURce?")
print "Measure source: %s" % qresult
do_command(":MEASure:FREQuency")
qresult = do_query_string(":MEASure:FREQuency?")
print "Measured frequency on channel 1: %s" % qresult
do_command(":MEASure:VAMPlitude")
qresult = do_query_string(":MEASure:VAMPlitude?")
print "Measured vertical amplitude on channel 1: %s" % qresult
# Download the screen image.
# --------------------------------------------------------
do_command(":HARDcopy:INKSaver OFF")
image_bytes = \
nLength = len(image_bytes)
fStream = File.Open("screen_image.png", FileMode.Create)
fStream.Write(image_bytes, 0, nLength)
fStream.Close()
print "Screen image written to screen_image.png."
# Download waveform data.
# --------------------------------------------------------
# Set the waveform points mode.
do_command(":WAVeform:POINts:MODE RAW")
qresult = do_query_string(":WAVeform:POINts:MODE?")
print "Waveform points mode: %s" % qresult
# Get the number of waveform points available.
do_command(":WAVeform:POINts 10240")
qresult = do_query_string(":WAVeform:POINts?")
print "Waveform points available: %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:
Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
do_query_ieee_block_UI1(":DISPlay:DATA? PNG, COLor")
Programming Examples
1127
39

Advertisement

Table of Contents
loading

Table of Contents