Program Examples
The program examples for commands in the online
HP 54620A/C
Programmer’s Reference
were written using the HP BASIC programming
language. The programs always assume the logic analyzer is at address 7 and
the interface is at address 7 for a program address of 707. If a printer is used,
it is always assumed to be at address 701.
In these examples, give special attention to the ways in which the command
or query can be sent. The way the instrument is set up to respond to a
command or query has no bearing on how you send the command or query.
That is, you can send the command or query using the long form or short
form (if a short form exists for that command). You can send the command
or query using uppercase (capital) letters or lowercase (small) letters. Also,
the data can be sent using almost any form you wish. If you are sending a
time base range value of 100 ms, it can be sent using a decimal (.1), or an
exponential (1e-1 or 1.0E-1), or a suffix (100 ms or 100MS).
The following examples let you send any of these commands to set the sweep
speed to 100 ms:
•
Commands in long form using the decimal format:
OUTPUT 707;":TIMEBASE:RANGE .1"
•
Commands in short form using an exponential format:
OUTPUT 707;":TIM:RANG 1E-1"
•
Commands using lowercase letters, short forms, and a suffix:
OUTPUT 707;":tim:rang 100 ms"
Including the Colon Is Optional
In these examples, including the colon as the first character of the command is
optional. The space between RANGE and the argument is required.
Programming and Documentation Conventions
Program Examples
59
Содержание 54620A
Страница 6: ...6 ...
Страница 9: ...1 Introduction to Programming ...
Страница 21: ...2 Programming Getting Started ...
Страница 35: ...3 Programming over HP IB ...
Страница 40: ...40 ...
Страница 41: ...4 Programming over RS 232 C ...
Страница 48: ...48 ...
Страница 49: ...5 Programming and Documentation Conventions ...
Страница 53: ...Programming and Documentation Conventions The command tree 53 ...
Страница 60: ...60 ...
Страница 61: ...6 Status Reporting ...
Страница 63: ...Status Reporting Data Structures Figure 4 Status Reporting 63 ...
Страница 68: ...68 ...
Страница 69: ...7 Installing and Using the Programmer s Reference ...
Страница 76: ...76 ...
Страница 77: ...8 Programmer s Quick Reference ...