HP IBASIC Program Example (VXISRCE)
This program uses the input data register to download the data directly to
the DAC over the VXIbus (see Appendix C for register programming
information).
1
!RE-SAVE“VXISRCE”
2
!This program downloads dac codes to the AFG dac from the input
3
!data register. Corresponding amplitude points are output as the
4
!codes are received.
5
!
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 input data register offset to form the
60
!complete register address.
70
Base_addr=DVAL(“1FC000”,16)+(80*64)
80
!
90
COM @Afg,Base_addr,INTEGER Waveform(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
!Set AFG parameters
210
OUTPUT @Afg;“SOUR:VOLT:LEV:IMM:AMPL 5.1175V”
!scale
amplitude
220
!
230
!Call subprogram which defines a triangle waveform.
240
CALL Triwave
250
!
260
WAIT .1
!allow interrupt to be serviced
270
OFF INTR 8
280
END
290
!
300
SUB Triwave
Continued on next page
127 HP E1340A High Speed Operation
Chapter 6
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 ...