Remote GPIB Interface
Serial BERT 12.5 Gb/s User Guide
85
430 OUTPUT 725; ":SOURCE:PRBS:IERR:RATE ERR1E3" ! set err inject
rate=1E3/sec
430 OUTPUT 725; ":SOURCE:PRBS:IERR:RATE OFF"
! turn error injection OFF
440 OUTPUT 725; ":SOURCE:PRBS:IERR:RATE?" ! query the result
450 ENTER 725; result$ ! read the result
460 PRINT result$ ! print the query result
The next block of code shows how to set up a timed Bit Error Measurement
of 5 seconds and report the BER at the end of the measurement interval.
470 OUTPUT 725; ":SENSE:SWEEP:TIME 5"
! set up a 5 second BER
measurement
480 OUTPUT 725; ":SENSE:SWEEP:TIME?"
! query the measurement time
490 ENTER 725; result$ ! read the result
500 PRINT result$ ! print the query result
510 OUTPUT 725; ":TRIGGER:INITIATE" ! start the 5 sec measurement
520 PRINT "Starting 5s measurement" ! display
530 OUTPUT 725; ":STATUS:OPERATION:MEASUREMENT:CONDITION?" ! check if done
540 ENTER 725; result$ ! read the result
550 PRINT result$ ! print the query result
560 OUTPUT 725; ":FETCH:BER?" ! query BER statistics
570 ENTER 725; result$ ! read the result
580 PRINT result$ ! print the query result
After running for 5 seconds, the program outputs a string with TOTAL-BITS,
TOTAL-ERRORS, ELAPSED-SECONDS, BIT-ERROR-RATE.
An alternative method of measuring BER is to use the sample command. The
SAMPLE command allows the user to "sample" the Bit Error Rate any
number of times during a measurement period.
590 OUTPUT 725; ":SENSE:SWEEP:TIME 10"
! set up a 10s BER measurement
600 OUTPUT 725; ":TRIGGER:INITIATE" ! start the 10s measurement
610 WAIT 2 ! wait 2 seconds
610 OUTPUT 725; ":TRIGGER:SAMPLE"
! trigger BER sample
620 OUTPUT 725; ":SENSE:DATA?"
! query a sample of the BER data
630 ENTER 725; result$ ! read the result
640 PRINT result$ ! print the BER sample result
650 WAIT 3 ! wait 3 seconds
660 OUTPUT 725; ":TRIGGER:ABORT"
! cancel the measurement
670 OUTPUT 725; ":FETCH:BER?" ! query the final BER data
680 ENTER 725; result$ ! read the result
690 PRINT result$ ! print the BER sample result
Summary of Contents for N4962A
Page 1: ...Agilent N4962A Serial BERT 12 5 Gb s User Guide...
Page 6: ......
Page 16: ...Getting Started 16 Serial BERT 12 5 Gb s User Guide...
Page 24: ...N4962A System Overview 24 Serial BERT 12 5 Gb s User Guide...
Page 36: ...System Details and Performance Specifications 36 Serial BERT 12 5 Gb s User Guide...
Page 60: ...Operation 60 Serial BERT 12 5 Gb s User Guide...
Page 86: ...Remote GPIB Interface 86 Serial BERT 12 5 Gb s User Guide...
Page 88: ...Copyright Agilent Technologies 2012 Third edition May 2013 Printed in Germany...