User`s manual
420 NEXT I
430 !
440 OUTPUT @Afg;"SOUR:LIST1:SEGM:SEL SINE" !segment name
450 OUTPUT @Afg;" SOUR:LIST1:SEGM:DEF 512" !segment size
460 OUTPUT @Afg;"SOUR:LIST1:SEGM:VOLT ";Waveform(*) !amplitude points
470 SUBEND
480 !
490 SUB Tri_wave
500 Tri_wave: !Subprogram which computes a triangle wave and marker list.
510 COM @Afg
520 DIM Waveform(1:512),Marker_list(1:512)
530 FOR I=1 TO 256 !Calculate triangle wave
540 Waveform(I)=I*.0195313
550 NEXT I
560 FOR I=257 TO 512
570 Waveform(I)=(512-I)*.0195313
580 NEXT I
590 !
600 FOR I=256 TO 266 !Define marker list
610 Marker_list(I)=1
620 NEXT I
630 !
640 !Load waveform points and marker list
650 OUTPUT @Afg;"SOUR:MARK:FEED ""SOUR:LIST1""" !markers at fp BNC
660 OUTPUT @Afg;"SOUR:LIST1:SEGM:SEL TRI" !segment name
670 OUTPUT @Afg;" SOUR:LIST1:SEGM:DEF 512" !segment size
680 OUTPUT @Afg;"SOUR:LIST1:SEGM:VOLT ";Waveform(*) !amplitude points
690 OUTPUT @Afg;"SOUR:LIST1:SEGM:MARK ";Marker_list(*) !marker list
700 SUBEND
710 !
720 SUB Seq_list
730 Seq_list: !This subprogram defines the sequence list and enables
740 !marker signals to be output with the triangle wave
750 !segment.
760 COM @Afg
770 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEL WAVE_OUT" !sequence name
780 OUTPUT @Afg;"SOUR:LIST1:SSEQ:DEF 2" !number of segments
790 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEQ SINE,TRI" !segments in sequence
800 OUTPUT @Afg;"SOUR:LIST1:SSEQ:MARK 0,1" !enable marker on segment TRI
810 SUBEND
820 !
830 SUB Rst
840 Rst: !Subprogram which resets the E1445.
850 COM @Afg
860 OUTPUT @Afg;"*RST;*OPC?" !reset the AFG
870 ENTER @Afg;Complete
880 SUBEND
890 !
900 SUB Wf_del
Continued on Next Page
210 Marker Outputs/Multiple AFG Operations Chapter 6