Programming
Guidelines
As noted, the example programs in this appendix are written in IBASIC. If
your application involves arbitrary waveforms, and waveform computation
is intensive and download time is not critical, an external controller should
be used. If download time is important and computation time is not critical,
IBASIC enables fast downloading through direct access to the VXI
backplane.
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).
Register Descriptions
There are four READ and four WRITE registers on the AFG. This section
contains a description and a bit map of each register.
The READ Registers
The following READ registers are located on the AFG.
•
ID Register (base + 00
16
)
•
Device Type Register (base + 02
16
)
•
Status Register (base + 04
16
)
•
Query Response Register (base + 08
16
)
Examples and program statements in this appendix use 16-bit reads. In most
cases, however, only the lower eight bits are used.
The ID Register
The AFG’s ID Register indicates the classification, addressing mode, and
the manufacturer of the device.
Address
15
14
13
12
11 - 0
base + 00
16
Device Class
Address Mode
Manufacturer ID
234 HP E1340A Register-Based Programming
Appendix C
Содержание 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 ...