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
Содержание 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 ...