Agilent Technologies 8753ET Guia do Utilizador Página 387

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 546
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 386
Chapter 7 7-21
Programming Examples
Measurement Setup Examples
Example 1B: Verifying Parameters
This example shows how to read analyzer settings into your controller. Appending a “?” to
a command that sets an analyzer parameter will return the value of that setting.
Parameters that are set as ON or OFF when queried will return a zero (0) if off or a one (1) if
active. Parameters are returned in ASCII format, FORM 4. This format varies in length
from 1 to 24 characters-per-value. In the case of marker or other multiple responses, the
values are separated by commas.
The following is an outline of the program's processing sequence:
An I/O path is assigned for the analyzer.
The system is initialized.
The number of points in the trace is queried and dumped to a printer.
The start frequency is queried and output to a printer.
The averaging is queried and output to a printer.
The analyzer is released from remote control and the program ends.
Running the Program
The analyzer is preset. The preset values are returned and printed out for: the number of
points, the start frequency, and the state of the averaging function. The analyzer is
released from remote control and the program ends.
BASIC Program Listing
10 ! This program performs some example queries of network analyzer
20 ! settings. The number of points in a trace, the start frequency
30 ! and if averaging is turned on, are determined and displayed.
40 !
50 ! EXAMP1B
60 !
70 ASSIGN @Nwa TO 716 ! Assign an I/O path for the analyzer
80 !
90 CLEAR SCREEN
100 ! Initialize the system
110 ABORT 7 ! Generate an IFC (Interface Clear)
120 CLEAR @Nwa ! SDC (Selected Device Clear)
130 OUTPUT @Nwa;"OPC?;PRES;" ! Preset the analyzer and wait
140 ENTER @Nwa;Reply ! Read in the 1 returned
150 !
160 ! Query network analyzer parameters
170 OUTPUT @Nwa;"POIN?;" ! Read in the default trace length
180 ENTER @Nwa;Num_points
190 PRINT "Number of points ";Num_points
200 PRINT
210 !
220 OUTPUT @Nwa;"STAR?;" ! Read in the start frequency
230 ENTER @Nwa;Start_f
240 PRINT "Start Frequency ";Start_f
250 PRINT
260 !
270 OUTPUT @Nwa;"AVERO?;" ! Averaging on?
Vista de página 386
1 2 ... 382 383 384 385 386 387 388 389 390 391 392 ... 545 546

Comentários a estes Manuais

Sem comentários