Gating The Waveforms - HP E1340A User Manual

Arbitrary function generator
Hide thumbs Also See for E1340A:
Table of Contents

Advertisement

Gating the Waveforms

HP IBASIC (GATE_SIG)
101
HP E1340A Arming and Marker Outputs
Gating a waveform is the process of suspending the output waveform. This
is accomplished by gating the reference oscillator on and off. An active gate
suspends waveform output at the point when the AFG receives the gate. Set
the gate inactive and waveform output resumes.
The following example shows how to use the AFG's "Aux In" BNC to
suspend waveform output. A high (TTL level) on the BNC activates the
gate.
The steps of program are as follows:
1. Set the Reference Oscillator Source -
[SOURce:]ROSCillator:SOURce <
2. Set the Output (Burst) Frequency -
[SOURce:]FREQuency[:CW|:FIXed] <
3. Set the Output Function -
[SOURce:]FUNCtion[:SHAPe] <
4. Set the Signal Amplitude -
[SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] <
5. Set the Gate State On -
[SOURce:]ROSCillator:GATE:STATe <
6. Place the AFG in the Wait-for-arm State -
INITiate[:IMMediate]
1
!RE-SAVE"GATE_SIG"
2
!This program gates the output of a 10 kHz triangle wave. When
3
! the gate signal is high, the gate is active and the waveform is
4
!suspended. When the gate signal is low, the gate is inactive and
5
!the waveform resumes.
6
!
10
!Assign I/O path between IBASIC and the E1340A.
20
ASSIGN @Afg TO 80910
30
COM @Afg
40
!
50
!Set up error checking
60
ON INTR 8 CALL Errmsg
70
ENABLE INTR 8;2
80
OUTPUT @Afg;"*CLS"
90
OUTPUT @Afg;"*SRE 32"
Continued on next page
source
>
frequency
>
shape
>
amplitude
state
>
>
Chapter 5

Advertisement

Table of Contents
loading

Table of Contents