
Remote GPIB Interface
80
Serial BERT 12.5 Gb/s User Guide
Example
OUTPUT 725; ":SENS:SWE:TIME 10"
OUTPUT 725; ":TRIG:INIT"
WAIT 2
OUTPUT 725; ":TRIG:SAMPLE”
OUTPUT 725; ":SENS:DATA? BER”
ENTER 725; value$
PRINT value$ ! BER value after 2 seconds
WAIT 3
OUTPUT 725; ":TRIG:ABOR"
OUTPUT 725; ":FETC:BER?"
ENTER 725; result$
PRINT result$ ! BER value after 5 seconds
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
Comentários a estes Manuais