Turning Off (Suppressing) the End-Of-Line Terminator
As mentioned, coupled commands must be contiguous and executed in the
same program statement. By suppressing the end-of-line (EOL) terminator
(Line Feed) on a command line, coupled commands can be sent on separate
lines, yet as a single program statement.
In HP IBASIC programs, the EOL terminator is suppressed by placing a
semicolon ( ; ) following the quotation mark ( “ ) which closes the
command string. In the program above, the commands in lines 150 - 180 are
in the coupling group. The semicolons following the command strings in
lines 150 through 170 suppress the EOL terminator; therefore lines 150 -
180 are sent as a single statement.
Getting Programs
The HP IBASIC programs are stored on the disk as ASCII files. The
program name is shown in the program title and in line 1 of the program
(e.g.,
1 !RE-SAVE"ARB_GEN"
). To get a program, type:
GET “
file name
” (e.g.,
GET
“ARB_GEN”)
Declaring IBASIC Variables in COM (common) Memory
When writing or modifying IBASIC programs, array variables can be
declared in COM (common) memory. Variables not in COM memory reside
in the IBASIC stack. The ’stack’ is a 32 kByte (default) segment of memory
which contains components such as pointers and local variables for
subprograms and declarations. When too many variables (or too large an
array) are in the stack, Error 2 - Memory Overflow will occur. If a memory
overflow occurs, the stack size can be changed with the command
PROGram:MALLocate <
nbytes
>
(see the Instrument BASIC User’s Manual
for more information).
Chapter 1
Getting Started with the HP E1340A 24
Содержание E1340A
Страница 12: ...Notes 12 HP E1340A Arbitrary Function Generator Module User s Manual ...
Страница 14: ...14 HP E1340A Arbitrary Function Generator Module User s Manual ...
Страница 42: ...Chapter 2 Generating Standard Waveforms with the HP E1340A 42 ...
Страница 54: ...Chapter 2 Generating Standard Waveforms with the HP E1340A 54 ...
Страница 57: ...Figure 3 1 Generating Arbitrary Waveforms 57 Generating Arbitrary Waveforms with the HP E1340A Chapter 3 ...
Страница 58: ...Chapter 3 Generating Arbitrary Waveforms with the HP E1340A 58 ...
Страница 84: ...Chapter 4 HP E1340A Sweeping and Frequency Shift Keying 84 ...
Страница 130: ...Chapter 6 HP E1340A High Speed Operation 130 ...
Страница 202: ...202 HP E1340A SCPI Conformance Information Chapter 7 ...
Страница 204: ...Figure 8 1 HP E1340A Status Groups and Associated Registers Chapter 8 HP E1340A AFG Status 204 ...
Страница 218: ...218 HP E1340A Specifications Appendix A ...
Страница 284: ...284 HP E1340A Register Based Programming Appendix C ...
Страница 295: ...Index HP E1340A Arbitrary Function Generator User s Manual 295 ...