Agilent Technologies 2000 X-Series Servisní příručka Strana 831

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 930
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 830
Programming Examples 38
Agilent InfiniiVision 2000 X-Series Oscilloscopes Programmer's Guide 831
print "Waveform format BYTE data written to %s." % strPath
# =========================================================
# Send a command and check for errors:
# =========================================================
def do_command(command):
myScope.WriteString("%s" % command, True)
check_instrument_errors(command)
# =========================================================
# Send a command and check for errors:
# =========================================================
def do_command_ieee_block(command, data):
myScope.WriteIEEEBlock(command, data, True)
check_instrument_errors(command)
# =========================================================
# Send a query, check for errors, return string:
# =========================================================
def do_query_string(query):
myScope.WriteString("%s" % query, True)
result = myScope.ReadString()
check_instrument_errors(query)
return result
# =========================================================
# Send a query, check for errors, return string:
# =========================================================
def do_query_ieee_block(query):
myScope.WriteString("%s" % query, True)
result = myScope.ReadIEEEBlock(VisaComLib.BinaryType_UI1, \
False, True)
check_instrument_errors(query)
return result
# =========================================================
# Send a query, check for errors, return values:
# =========================================================
def do_query_number(query):
myScope.WriteString("%s" % query, True)
result = myScope.ReadNumber(VisaComLib.ASCIIType_R8, True)
check_instrument_errors(query)
return result
# =========================================================
# Send a query, check for errors, return values:
# =========================================================
def do_query_numbers(query):
myScope.WriteString("%s" % query, True)
result = myScope.ReadList(VisaComLib.ASCIIType_R8, ",;")
check_instrument_errors(query)
Zobrazit stránku 830
1 2 ... 826 827 828 829 830 831 832 833 834 835 836 ... 929 930

Komentáře k této Příručce

Žádné komentáře