Agilent Technologies InfiniiVision 3000 Programmer's Manual page 1129

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

Advertisement

print "Waveform format BYTE data written to %s." % strPath
# =========================================================
# Send a command and check for errors:
# =========================================================
def do_command(command):
InfiniiVision.WriteString("%s" % command, True)
check_instrument_errors(command)
# =========================================================
# Send a command and check for errors:
# =========================================================
def do_command_ieee_block(command, data):
InfiniiVision.WriteIEEEBlock(command, data, True)
check_instrument_errors(command)
# =========================================================
# Send a query, check for errors, return string:
# =========================================================
def do_query_string(query):
InfiniiVision.WriteString("%s" % query, True)
result = InfiniiVision.ReadString()
check_instrument_errors(query)
return result
# =========================================================
# Send a query, check for errors, return string:
# =========================================================
def do_query_ieee_block_UI1(query):
InfiniiVision.WriteString("%s" % query, True)
result = \
check_instrument_errors(query)
return result
# =========================================================
# Send a query, check for errors, return values:
# =========================================================
def do_query_number(query):
InfiniiVision.WriteString("%s" % query, True)
result = InfiniiVision.ReadNumber(IEEEASCIIType.ASCIIType_R8, True)
check_instrument_errors(query)
return result
# =========================================================
# Check for instrument errors:
# =========================================================
def check_instrument_errors(command):
while True:
Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
InfiniiVision.ReadIEEEBlock(IEEEBinaryType.BinaryType_UI1, \
False, True)
Programming Examples
1129
39

Advertisement

Table of Contents
loading

Table of Contents