Remote GPIB Interface
Serial BERT 12.5 Gb/s User Guide
83
5.6
Examples
The following programming example assumes the user is programming with
Agilent BASIC, a simple interpretative language that is convenient for
instrument programming.
For the example programs below, the device being programmed is located at
GPIB device address 725. The actual address varies according to how you have
configured the GPIB bus for your own application. For information to change
the bus address see Section 5.
This first block of code shows how to initialize the instrument and check the
GPIB subsystem for errors.
10 OUTPUT 725; "*IDN?" ! request the instrument ID string
20 ENTER 725; result$ ! read the return string
30 PRINT result$
! print the results to stdout
30 OUTPUT 725; ":SYSTEM:ERROR?" ! check for errors
40 OUTPUT 725; "*RST"
! reset the BERT
The next block of code shows how to save the instrument state in one of the
save/recall registers (0-9), how to change the value of the internal HF clock,
and how to restore the previous instrument state saved in the save/recall
register.
50 OUTPUT 725; "*SAV 1" ! save current inst. state in reg 1
60 OUTPUT 725; ":SOURCE:ROSC:FREQ 11111"! change the BERT freq to 11111MHz
70 OUTPUT 725; ":SOURCE:ROSC:INT:FREQ?" ! query the source frequency
80 ENTER 725; freq$
! read the result
90 PRINT freq$ ! print the frequency results
100 OUTPUT 725; "*RCL 1"
! recall the prior state (frequency)
The next block of code shows how to get the SCPI version number.
110 OUTPUT 725; ":SYSTEM:VERSION?" ! query the control version
120 ENTER 725; version$ ! read the result
130 PRINT version$ ! print the version
This block shows how to manually set the error detector phase, and how to
use the automatic detector phase adjust feature via GPIB control.
Содержание N4962A
Страница 1: ...Agilent N4962A Serial BERT 12 5 Gb s User Guide...
Страница 6: ......
Страница 16: ...Getting Started 16 Serial BERT 12 5 Gb s User Guide...
Страница 24: ...N4962A System Overview 24 Serial BERT 12 5 Gb s User Guide...
Страница 36: ...System Details and Performance Specifications 36 Serial BERT 12 5 Gb s User Guide...
Страница 60: ...Operation 60 Serial BERT 12 5 Gb s User Guide...
Страница 86: ...Remote GPIB Interface 86 Serial BERT 12 5 Gb s User Guide...
Страница 88: ...Copyright Agilent Technologies 2012 Third edition May 2013 Printed in Germany...