User`s manual
190 OUTPUT @Afg;":SOUR:FUNC:SHAP USER;"; !function
200 OUTPUT @Afg;":SOUR:VOLT:LEV:IMM:AMPL 5.1V" !amplitude
210 OUTPUT @Afg;"SOUR:MARK:FEED ""TRIG:STAR""" !marker source
220 OUTPUT @Afg;"SOUR:MARK:POL NORM" !marker polarity
230 OUTPUT @Afg;"SOUR:MARK:STAT ON" !enable marker
240 !
250 CALL Ramp_wave
260 !
270 OUTPUT @Afg;"SOUR:FUNC:USER RAMP_OUT" !waveform sequence
280 OUTPUT @Afg;"INIT:IMM" !wait-for-arm state
290 !
300 WAIT .1 !allow interrupt to be serviced
310 OFF INTR 7
320 END
330 !
340 SUB Ramp_wave
350 Ramp_wave: !Subprogram which computes a ramp wave and sets the
351 !output sequence.
360 COM @Afg
370 DIM Waveform(1:10) !Calculate ramp wave
380 FOR I=1 TO 10
390 Waveform(I)=I*.5
400 NEXT I
410 !
420 OUTPUT @Afg;"SOUR:LIST1:SEGM:SEL RAMP" !segment name
430 OUTPUT @Afg;" SOUR:LIST1:SEGM:DEF 10" !segment size
440 OUTPUT @Afg;"SOUR:LIST1:SEGM:VOLT ";Waveform(*)!amplitude points
450 !
460 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEL RAMP_OUT" !sequence name
470 OUTPUT @Afg;"SOUR:LIST1:SSEQ:DEF 1" !number of segments
480 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEQ RAMP" !segments in sequence
490 SUBEND
500 !
510 SUB Rst
520 Rst: !Subprogram which resets the E1445.
530 COM @Afg
540 OUTPUT @Afg;"*RST;*OPC?" !reset the AFG
550 ENTER @Afg;Complete
560 SUBEND
570 !
580 SUB Wf_del
590 Wf_del: !Subprogram which deletes all sequences and segments.
600 COM @Afg
610 OUTPUT @Afg;"FUNC:USER NONE" !select no sequences
620 OUTPUT @Afg;"LIST:SSEQ:DEL:ALL" !Clear sequence memory
630 OUTPUT @Afg;"LIST:SEGM:DEL:ALL" !Clear segment memory
640 SUBEND
650 !
660 SUB Errmsg
Continued on Next Page
216 Marker Outputs/Multiple AFG Operations Chapter 6