User`s manual
BASIC Program Example (ARBWAVE)
1 !RE-STORE"ARBWAVE"
2 !This program demonstrates the procedure for developing and
3 !outputting an arbitrary waveform.
4 !
10 !Assign I/O path between the computer and E1445A.
20 ASSIGN @Afg TO 70910
30 COM @Afg,Seg_mem$[256],Seq_mem$[256]
40 !
50 !Set up error checking
60 ON INTR 7 CALL Errmsg
70 ENABLE INTR 7;2
80 OUTPUT @Afg;"*CLS"
90 OUTPUT @Afg;"*SRE 32"
100 OUTPUT @Afg;"*ESE 60"
110 !
120 !Call the subprograms
130 CALL Rst
140 CALL Wf_del
150 !
160 OUTPUT @Afg;"SOUR:FREQ1:FIX 100E3;"; !frequency
170 OUTPUT @Afg;":SOUR:FUNC:SHAP USER;"; !function
180 OUTPUT @Afg;":SOUR:VOLT:LEV:IMM:AMPL 5.1V" !amplitude
190 !
200 CALL Ramp_wave
210 !
220 OUTPUT @Afg;"SOUR:FUNC:USER RAMP_OUT" !waveform sequence
230 OUTPUT @Afg;"INIT:IMM" !wait-for-arm state
240 !
250 PRINT “Segment memory points available, used: ”;Seg_mem$
260 PRINT
270 PRINT “Sequence memory points available, used: ”;Seq_mem$
280 !
290 WAIT .1 !allow interrupt to be serviced
300 OFF INTR 7
310 END
320 !
330 SUB Ramp_wave
340 Ramp_wave: !Subprogram which defines a ramp waveform and output
350 !sequence.
360 COM @Afg,Seg_mem$,Seq_mem$
370 DIM Waveform(1:100) !Calculate waveform points
380 FOR I=1 TO 100
390 Waveform(I)=I*.0505
400 NEXT I
410 !
420 OUTPUT @Afg;"SOUR:LIST1:SEGM:SEL RAMP" !segment name
430 OUTPUT @Afg;" SOUR:LIST1:SEGM:DEF 100" !segment size
440 OUTPUT @Afg;" SOUR:LIST1:SEGM:VOLT ";Waveform(*) !waveform points
Continued on Next Page
Chapter 3 Generating Arbitrary Waveforms 91