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
Summary of Contents for 54620A
Page 6: ...6 ...
Page 9: ...1 Introduction to Programming ...
Page 21: ...2 Programming Getting Started ...
Page 35: ...3 Programming over HP IB ...
Page 40: ...40 ...
Page 41: ...4 Programming over RS 232 C ...
Page 48: ...48 ...
Page 49: ...5 Programming and Documentation Conventions ...
Page 53: ...Programming and Documentation Conventions The command tree 53 ...
Page 60: ...60 ...
Page 61: ...6 Status Reporting ...
Page 63: ...Status Reporting Data Structures Figure 4 Status Reporting 63 ...
Page 68: ...68 ...
Page 69: ...7 Installing and Using the Programmer s Reference ...
Page 76: ...76 ...