Agilent Technologies E1445A Manual do Utilizador Página 215

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 534
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 214
BASIC Program Example (MARKSEG2)
The MARKSEG2 program is the same as the MARKSEG1 program on
page 209 except it selects the marker pulses differently. The differences are
as follows:
1 !RE-STORE“MARKSEG2”
2 !This program computes a sine wave and a triangle wave as arbitrary
3 !waveforms. A single marker pulse is output with amplitude point 256
4 !of the triangle wave.
170 !Set up the AFG
180 OUTPUT @Afg;"SOUR:FREQ1:FIX 512E3;"; !frequency
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 ""SOUR:LIST1""" !marker source
220 OUTPUT @Afg;"SOUR:MARK:POL NORM" !marker polarity
230 OUTPUT @Afg;"SOUR:MARK:STAT ON" !enable marker
500 Tri_wave: !Subprogram which computes a triangle wave and specifies
510 !a marker pulse to be output with amplitude point 256.
520 COM @Afg
530 DIM Waveform(1:512)
540 FOR I=1 TO 256 !Calculate triangle wave
550 Waveform(I)=I*.0195313
560 NEXT I
570 FOR I=257 TO 512
580 Waveform(I)=(512-I)*.0195313
590 NEXT I
600 !
610 !Load waveform points and specify a single marker pulse
620 OUTPUT @Afg;"SOUR:LIST1:SEGM:SEL TRI" !segment name
630 OUTPUT @Afg;" SOUR:LIST1:SEGM:DEF 512" !segment size
640 OUTPUT @Afg;"SOUR:LIST1:SEGM:VOLT ";Waveform(*)!amplitude points
650 OUTPUT @Afg;"SOUR:LIST1:SEGM:MARK:SPO 256" !marker on point 256
660 SUBEND
670 !
680 SUB Seq_list
690 Seq_list: !This subprogram defines the sequence list and enables
700 !a marker signal to be output with the triangle wave
710 !segment.
720 COM @Afg
730 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEL WAVE_OUT" !sequence name
740 OUTPUT @Afg;"SOUR:LIST1:SSEQ:DEF 2" !number of segments
750 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEQ SINE,TRI" !segments in sequence
760 OUTPUT @Afg;"SOUR:LIST1:SSEQ:MARK:SPO 2" !enable marker on segment TRI
770 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, MARKSEG2.FRM, is in directory
“VBPROG” and the Visual C example program, MARKSEG2.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Chapter 6 Marker Outputs/Multiple AFG Operations 213
Vista de página 214
1 2 ... 210 211 212 213 214 215 216 217 218 219 220 ... 533 534

Comentários a estes Manuais

Sem comentários