Program Example
Chapter 6
This program shows how to store a waveform segment (i.e., points of an
arbitrary waveform) into the AFG's segment memory. The waveform
segment are sent as DAC codes using the Definite Length Block Data
transfer method. The example generates a 4096 point 0 to +5 V positive
going ramp.
1. Reset the AFG -
*RST
2. Setup the AFG for Output -
[SOURce:]FREQuency[:CW|FIXed] <
[SOURce:]FUNCtion[:SHAPe] USER
[SOURce:]VOLTage[:LEVel][:IMMediate][: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
[SOURce:]LIST[1]
4. Select the Waveform Segment -
[SOURce:]LIST[:SEGMent]:SELect <
Use either
,
,
A
B
C
5. Store the Waveform Segment as DAC Data -
[SOURce:]LIST[:SEGMent]:VOLTage:DAC <
This command stores the waveform segment into segment memory
using DAC codes sent as Definite Length Block Data.
6. Generate the Output -
[SOURce:]FUNCtion:USER <
INITiate[:IMMediate]
frequency
to transfer the data using the
INTernal
subsystem.
name
, or
in
name
for the waveform segment.
D
<
>
name
>
HP E1340A High Speed Operation
>
amplitude
>
>
voltage_list
>
114