HP E1340A User's Manual
Download Operation & user’s manual of HP E1340A Portable Generator for Free or View it Online on All-Guides.com.
Program Example This program shows how to store a waveform segment (i.e., points of an
arbitrary waveform) into the AFG’s segment memory. The program
transfers the data to the AFG as a comma ( , ) separated list. The example
generates a 4096 point +5 V to -5 V negative going ramp.
1. Reset the AFG -
*RST
2. Setup the AFG for Output -
[SOURce:]FREQuency[:CW|FIXed] <frequency>
[SOURce:]FUNCtion[:SHAPe] USER
[SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] <
amplitude>
3. Select the DAC Data Source -
[SOURce:]ARBitrary:DAC:SOURce INTernal
This command selects the source that transfers data to the DAC
(see “Program Comments”). Use
INTernal to transfer the data using
the
[SOURce:]FUNCtion USER subsystem. (Reset automatically sets
this command; it is given here for good programming practice.)
4. Select the Waveform Segment -
[SOURce:]LIST[:SEGMent]:SELect <name>
Use either A, B, C, or D in <name> for the waveform segment.
5. Store the Waveform Segment as DAC Data -
[SOURce:]LIST[:SEGMent]:VOLTage:DAC <voltage_list>
This command stores the waveform segment into segment memory
using DAC codes consisting of 16-bit integers.
6. Generate the Output -
[SOURce:]FUNCtion:USER <name>
INITiate[:IMMediate]
HP IBASIC Program Example (UNS_DAT)
1 !RE-SAVE“UNS_DAT”
2 !This program downloads AFG data in the form of DAC codes
3 !(unsigned numbers). The data represents a 5V ramp waveform.
4!
10 !Assign I/O path between IBASIC and the E1340A.
20 ASSIGN @Afg TO 80910
30 COM @Afg,Waveform(1:4096)
40 !
50 !Set up error checking
60 ON INTR 8 CALL Errmsg
70 ENABLE INTR 8;2
Continued on next page
Chapter 6 HP E1340A High Speed Operation 110