Sample Programs; Generating A Damped Sine Wave - HP E1340A User Manual

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

Advertisement

Sample Programs

Generating a
Damped Sine Wave
HP IBASIC Program Example (SIN_D)
Chapter 3
The following programs generate various arbitrary waveforms. All
programs output waveforms at a 1 kHz waveform frequency and 5 V
amplitude.
Due to the similarity of all the programs, only the first program is
completely presented here. Only the differences are shown by the other
programs.
This program generates a Damped Sine Wave using 4096 segments or
points.
1
!RE-SAVE"SIN_D"
2
!This program generates a damped sine wave.
3
!
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
80
OUTPUT @Afg;"*CLS"
90
OUTPUT @Afg;"*SRE 32"
100
OUTPUT @Afg;"*ESE 60"
110
!
Continued on next page
Generating Arbitrary Waveforms with the HP E1340A
76

Advertisement

Table of Contents
loading

Table of Contents