Multiple Waveforms
This program loads RAM 0 through RAM 3 from the waveform EPROM
and outputs each waveform as part of a single waveform sequence.
HP IBASIC (MULTFUNC)
1 !RE-SAVE"MULTFUNC"
2 GET "SUBS",500,3 !place subprograms at line 500, continue w/line 3
3 !Program which demonstrates loading memory (RAM 0 through RAM 3)
4 !and then outputting the waveforms in a single sequence.
5 !
10 !Compute the E1340 base address in E1300 A16 address space
20 COM Base_addr
30 Base_addr=DVAL("1FC000",16)+(80*64) !base address
40 !
50 !Reset the AFG
60 Afg_reset
70 !Load RAM 0 - RAM 3 from the waveform EEPROM
80 Function(9,0) !rising ramp in RAM 0
90 Function(10,1) !first 20 terms of rising ramp in RAM 1
100 Function(7,2) !falling ramp in RAM 2
110 Function(8,3) !first 20 of falling ramp in RAM 3
120 !Set the frequency (frequency register 1)
130 Frequency1(1000.) !1 kHz (output frequency is 250 Hz)
140 !Set amplitude, offset, impedance, correction
150 Amplitude(5,0,50,0) !5 Vpk, 0V, 50 ohms, correction enabled
160 !Set the Aux Out level, Aux In level, clock source, Aux Out signal,
170 !RAM bank, frequency register, and output mode.
180 Mode(0,0,3,1,16,0,0) !norm,norm,internal,pulse/cycle,16k,reg 1,cont
190 END
200 !
Comments
1. To output waveforms from RAM 0 - RAM 3 in a single sequence, the
RAM size must be set to 16k, which overrides the RAM bank setting.
In line 180, "16" is passed to the "Mode" subprogram which sets
RAM size to 16k (see "SELECT Ram_bank" in subprogram "Mode").
2. When register-based programming, if two waveform segments
(RAM 1 and RAM 2)comprise the output waveform, the frequency is
1/2 of the programmed frequency. If four waveform segments
(RAM 0 through RAM 3) are used, the output frequency is 1/4 of the
programmed frequency. The actual frequency of the waveform in this
program is 250 Hz.
Appendix C
HP E1340A Register-Based Programming 259
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 ...