500
PRINT "AM Modulation - press CONTinue"
510
!
520
OUTPUT @Fgen;"OUTPut:LOAD INFinity"
530
OUTPUT @Fgen;"APPLy:SINusoid 1e6,1,0"
540
OUTPUT @Fgen;"AM:INTernal:FUNCtion RAMP"
550
OUTPUT @Fgen;"AM:INTernal:FREQuency 10e3" ! Modulating frequency: 10kHz
560
OUTPUT @Fgen;"AM:DEPTh 80"
570
OUTPUT @Fgen;"AM:STATe ON"
580
Check_errors
590
PAUSE
600
OUTPUT @Fgen;"am:stat off"
610
!
620
PRINT "FM Modulation - press CONTinue"
630
!
640
OUTPUT @Fgen;"outp:load 50"
650
OUTPUT @Fgen;"appl:sin 20e3,1,0"
660
OUTPUT @Fgen;"fm:dev 20e3"
670
OUTPUT @Fgen;"fm:int:freq 1000"
680
OUTPUT @Fgen;"fm:stat on"
690
Check_errors
700
PAUSE
710
OUTPUT @Fgen;"fm:stat off"
720
!
730
PRINT "Linear Sweep - press CONTinue"
740
!
750
OUTPUT @Fgen;"sweep:time 1"
760
OUTPUT @Fgen;"freq:start 100"
770
OUTPUT @Fgen;"freq:stop 20000"
780
OUTPUT @Fgen;"sweep:stat on"
790
Check_errors
800
PAUSE
810
OUTPUT @Fgen;"sweep:stat off"
820
!
830
PRINT "Pulse Waveform with variable Edge Times - press CONTinue"
840
!
850
OUTPUT @Fgen;"output:state off"
860
OUTPUT @Fgen;"volt:low 0;:volt:high 0.75" ! Low = 0V, High = 0.75V
870
OUTPUT @Fgen;"pulse:period 1e-3"
880
OUTPUT @Fgen;"pulse:width
890
OUTPUT @Fgen;"pulse:tran 10e-6"
900
OUTPUT @Fgen;"func pulse"
910
OUTPUT @Fgen;"output:state on"
920
FOR I=1 TO 10
930
OUTPUT @Fgen;"puls:tran ";1.0E-5+I*1.E-6
940
WAIT .3
950
NEXT I
960
Check_errors
970
PAUSE
980
!
Suite à la page suivante...
Chapitre 6 Programmes d'application
Exemple : BASIC pour Windows
! Configure for Hi Z load
! 1MHz Sine, 1Vpp, 0Vdc Offset
! Modulating signal: Ramp
! Modulating depth: 80%
! Turn ON AM modulation
! Routine checks for errors
! Turn OFF AM modulation
! Configure for 50 ohm load
! 20kHz Sine, 1Vpp, 0Vdc Offset
! FM deviation: 20kHz
! FM Modulating Freq: 1kHz
! Turn ON FM modulation
! Routine checks for errors
! Turn OFF FM modulation
! 1 second sweep time
! Start frequency: 100Hz
! Stop frequency: 20kHz
! Turn ON sweeping
! Routine checks for errors
! Turn OFF sweeping
! Disable Output BNC
! 1ms intervals
100e-6"
! 100us pulse width
! Edge time 10us
! Select Function Pulse
! Enable Output BNC
! Vary edge by 1usec steps
! Routine checks for errors
4
6
299