Technical data
To calculate the captured pattern, XOR the bits from pattern A with the bits from
pattern B. See also “Handling the Results” on page 45 for more information.
To abort error location capture in SCPI:
1
Clear the status registers:
*CLS
2
Set up the Operation status register so that it triggers when Error Location
Capture stops:
STATus:OPERation:NTRansition 16384 STATus:OPERation:PTRansition 0
3
Stop error location capture:
SENSe1:ELOCation OFF
4
Set up a loop in your program and wait until the measurement stops:
SENSe1:ELOCation:VERBose?
As soon as the measurement is aborted, this should return
ELOC__ABORTED.
Alternatively, you can setup a loop and wait until the OPER bit (bit7) of the
status byte is set (
*STB?
). Then check the Operation status register
(
STATus:OPERation?
). If bit14 is set, ELOC is no longer running. However, checking
the status bytes will not tell you the reason why the measurement is not
running.
Note that for an aborted measurement, no result files are generated.
Using Interrupts
Using Interrupts - Concepts
You may want to know when a particular event occurs, without having to
continually poll the reporting register. The best way to do this is with the use of
interrupts.
Interrupts or Service Requests (SRQ) allow the instrument to pause the controller
when the contents of a particular register change. The controller can then suspend
its present task, service the instrument, and return to its initial task.
The basic steps involved in generating a service request (SRQ) are as follows:
• Decide which particular event should trigger a service request.
3 Recommended Programming Techniques
52 Agilent J-BERT N4903B High-Performance Serial BERT
Aborting Error Location Capture
Service Request Example