User`s manual

340 END
350 !
360 SUB Sinx_def
370 Sinx_def: !Subprogram which computes the sin(x)/x waveform amplitudes
380 !used by both AFGs.
390 COM @Afg_m,@Afg_s,Waveform(*)
400 FOR I=-2047 TO 2048
410 IF I=0 THEN I=1.E-38
420 Waveform(I+2048)=((SIN(2*PI*.53125*I/256))/(.53125*I/256)*.159154943092)
430 NEXT I
440 SUBEND
450 !
460 SUB Sinx_m
470 COM @Afg_m,@Afg_s,Waveform(*)
480 Sinx_m: !Set the reference oscillator source, trigger source,
490 !frequency mode/frequency, and amplitude for the master
500 !AFG waveform. Feed the master trigger source to the slave
510 !AFG via ECL trigger line ECLT0.
520 OUTPUT @Afg_m;"SOUR:ROSC:SOUR INT1;";
530 OUTPUT @Afg_m;":TRIG:STAR:SOUR INT1;";
540 OUTPUT @Afg_m;":SOUR:FREQ1:MODE FIXED;";
550 OUTPUT @Afg_m;":SOUR:FREQ1:FIX 4.096E6;";
560 OUTPUT @Afg_m;":SOUR:FUNC:SHAP USER;";
570 OUTPUT @Afg_m;":SOUR:VOLT:LEV:IMM:AMPL 1.1V"
580 OUTPUT @Afg_m;"SOUR:MARK:ECLT0:FEED ""TRIG:STAR"""
590 OUTPUT @Afg_m;"SOUR:MARK:ECLT0:STAT ON"
600 !
610 !Define the waveform segment and download the amplitude points.
620 !Define the output waveform sequence.
630 OUTPUT @Afg_m;"SOUR:LIST1:SEGM:SEL SIN_X" !select segment
640 OUTPUT @Afg_m;"SOUR:LIST1:SEGM:DEF 4096" !reserve memory
650 OUTPUT @Afg_m;"SOUR:LIST1:SEGM:VOLT";Waveform(*) !load points
660 !
670 OUTPUT @Afg_m;"SOUR:LIST1:SSEQ:SEL SINX_M" !select sequence
680 OUTPUT @Afg_m;"SOUR:LIST1:SSEQ:DEF 1" !specify segments
690 OUTPUT @Afg_m;"SOUR:LIST1:SSEQ:SEQ SIN_X" !segment order
700 SUBEND
710 !
720 SUB Sinx_s
730 Sinx_s: !Set the trigger source, frequency mode, function, and
740 !amplitude for the slave AFG waveform.
750 COM @Afg_m,@Afg_s,Waveform(*)
760 OUTPUT @Afg_s;"TRIG:STAR:SOUR ECLT0;";
770 OUTPUT @Afg_s;":SOUR:FREQ1:MODE FIXED;";
780 OUTPUT @Afg_s;":SOUR:FUNC:SHAP USER;";
790 OUTPUT @Afg_s;":SOUR:VOLT:LEV:IMM:AMPL 1.1V"
800 !
810 !Define the waveform segment and download the amplitude points.
820 !Define the output waveform sequence. Select the sequence for
830 !output and place the slave AFG in the Wait-for-arm state.
Continued on Next Page
178 Arming and Triggering Chapter 5