Technical data
SOURce1:PATTern:APCHange:SELect AHALf | BHALf | ABHAlf
Examples for Using User Patterns in SCPI
To set up a user pattern using SCPI:
1
Set the error detector to track the pattern generator (that is, to use the same
pattern).
SENSe1:PATTern:TRACk ON
2
Define the file 'ALT1s0s.ptrn' to be an alternate pattern.
SOURce1:PATTern:UFILe:USE
'C:\<Instrument Model>\Pattern\ALT1s0s.ptrn', APATtern
3
Define the input data format to be binary (1s and 0s).
SOURce1:PATTern:FORMat:DATA PACKed, 1
4
Set the pattern length to 8 bits.
SOURce1:PATTern:UFILe:LENGth
'C:\<Instrument Model>\Pattern\ALT1s0s.ptrn', 8
5
Define pattern A.
SOURce1:PATTern:UFILe:DATA A,
'C:\<Instrument Model>\Pattern\ALT1s0s.ptrn', #1810101010
6
Define pattern B.
SOURce1:PATTern:UFILe:DATA B,
'C:\<Instrument Model>\Pattern\ALT1s0s.ptrn', #1800000000
7
Load the pattern to the pattern generator.
SOURce1:PATTern:SELect FILENAME,
'C:\<Instrument Model>\Pattern\ALT1s0s.ptrn'
N O T E
When the pattern is loaded to the pattern generator, it is also loaded to the error
detector (TRACking ON). Keep in mind that the error detector can only track pattern
A. When pattern B is sent, the error detector will still expect pattern A.
With these commands, pattern A is sent when the input at Aux In is low. When
the input is high, pattern B is sent.
1
Load the previously defined pattern to the pattern generator.
SOURce1:PATTern:SELect FILename,
'C:\<Instrument Model>\Pattern\ALT1s0s.ptrn'
2
Select the source for switching patterns to Aux In.
Recommended Programming Techniques 3
Agilent J-BERT N4903B High-Performance Serial BERT 65
Switching at Aux In