HP IBASIC Program Example (VXIDOWN)
This program is similar to the DACBLOK program on page 115, except on
how the data is transferred to the AFG. The program uses IBASIC to
download the data using the VXIbus.
1
!RE-SAVE“VXIDOWN”
2
!This program generates an arbitrary waveform comprised of two
3
!waveform segments. The segment data (DAC codes) are transferred
4
!from IBASIC to the AFG’s input data register over the VXI backplane.
5
!This method of data transfer is recommended when amplitude data
6
!computation (by IBASIC) is not intensive, but fast downloading is
7
!required.
8
!
10
!Assign I/O path between IBASIC and the E1340A.
20
ASSIGN @Afg TO 80910
30
!
40
!Compute the E1340 base address in A16 address space. The base
50
!address is used with the AFG’s input data register offset to form
60
!the complete register address.
70
Base_addr=DVAL(“1FC000”,16)+(80*64)
80
!
90
COM @Afg,Base_addr,INTEGER Wave1(1:4096),INTEGER
Wave2(1:4096)
100
!
110
!Set up error checking
120
ON INTR 8 CALL Errmsg
130
ENABLE INTR 8;2
140
OUTPUT @Afg;“*CLS”
150
OUTPUT @Afg;“*SRE 32”
160
OUTPUT @Afg;“*ESE 60”
170
!
180
!Call the subprogram which resets the AFG.
190
CALL Rst
200
!
210
!Set AFG parameters
220
OUTPUT @Afg;“SOUR:FREQ:FIX 10E3;”;
!frequency
230
OUTPUT @Afg;“:SOUR:FUNC:SHAP USER;”;
!function
240
OUTPUT @Afg;“:SOUR:VOLT:LEV:IMM:AMPL 5.1175V”
!scale
amplitude
250
!
260
!Call subprogram which defines waveform segments A and B.
270
CALL Sine_tri_wave
280
!
290
!Select output sequence and initiate waveform
300
OUTPUT @Afg;“SOUR:FUNC:USER AB”
310
OUTPUT @Afg;“INIT:IMM”
!wait-for-arm state
Continued on next page
123 HP E1340A High Speed Operation
Chapter 6
Содержание 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 ...