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
Summary of Contents for E1340A
Page 12: ...Notes 12 HP E1340A Arbitrary Function Generator Module User s Manual ...
Page 14: ...14 HP E1340A Arbitrary Function Generator Module User s Manual ...
Page 42: ...Chapter 2 Generating Standard Waveforms with the HP E1340A 42 ...
Page 54: ...Chapter 2 Generating Standard Waveforms with the HP E1340A 54 ...
Page 58: ...Chapter 3 Generating Arbitrary Waveforms with the HP E1340A 58 ...
Page 84: ...Chapter 4 HP E1340A Sweeping and Frequency Shift Keying 84 ...
Page 130: ...Chapter 6 HP E1340A High Speed Operation 130 ...
Page 202: ...202 HP E1340A SCPI Conformance Information Chapter 7 ...
Page 218: ...218 HP E1340A Specifications Appendix A ...
Page 284: ...284 HP E1340A Register Based Programming Appendix C ...
Page 295: ...Index HP E1340A Arbitrary Function Generator User s Manual 295 ...