Agilent Technologies ESG Especificaciones Pagina 159

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 259
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 158
Programming Guide 2-81
ESG Family Signal Generators Programming Commands and Examples
Using Queries, Example Program 3
Using Queries, Example Program 3
In this example, query commands are used with response data formats.
CLEAR and RESET the controller and run the following program:
10 !********************************************************************************
20 !
30 ! PROGRAM NAME: QUERIES Rev. 2A796
40 !
50 ! PROGRAM DESCRIPTION: In this example, query commands are used with response
60 ! data formats.
70 !
80 ! CLEAR and RESET the controller and RUN the following program:
90 !
100 !********************************************************************************
110 !
120 DIM A$[10],C$[100],D$[10]
130 INTEGER B
140 Sig_gen=719
150 LOCAL Sig_gen
160 CLEAR Sig_gen
170 CLEAR SCREEN
180 OUTPUT Sig_gen;"*RST"
190 OUTPUT Sig_gen;"FREQ:CW?"
200 ENTER Sig_gen;F
210 PRINT "Present source CW frequency is: ";F/1.E+6;"MHz"
220 PRINT
230 OUTPUT Sig_gen;"POW:AMPL?"
240 ENTER Sig_gen;W
250 PRINT "Current power setting is: ";W;"dBM"
260 PRINT
270 OUTPUT Sig_gen;"FREQ:MODE?"
280 ENTER Sig_gen;A$
290 PRINT "Source’s frequency mode is: ";A$
300 PRINT
310 B=0
320 !OUTPUT Sig_gen;"OUTP:MOD OFF"
330 OUTPUT Sig_gen;"OUTP:MOD:STAT?"
340 ENTER Sig_gen;B
350 IF B>0 THEN
360 PRINT "Modulation is: ON"
370 ELSE
380 PRINT "Modulation is: OFF"
390 END IF
Vista de pagina 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 258 259

Comentarios a estos manuales

Sin comentarios