Programming Reference

SCPI Instrument Command List

The instrument uses each byte of data set one Bit in the pattern memory. If you don’t specify a particular channel, the lowest two bits of each byte are used to set all three channels, and the top six bits are ignored. Note that you can therefore use the ASCII characters ‘0’,‘1’,‘2’ and ‘3’, to program Outputs 1 and 2 in binary:

DATA

 

 

 

 

 

 

 

 

CH2

CH1

 

 

 

 

 

 

 

 

 

OUTPUT2

OUTPUT1

 

 

 

 

 

 

 

 

 

ASCII

 

 

ignored

 

 

used

 

 

 

 

 

 

 

 

D7 D6 D5 D4 D3 D2

D1 D0

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

1

1

0

0

0

0

0

0

1

0

0

1

1

0

0

0

1

0

1

2

0

0

1

1

0

0

1

0

1

0

3

0

0

1

1

0

0

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

:DIG:PATT:SEGM1:DATA2 #1501011

If you specify a particular channel, the least significant bit of each byte is used to set the selected channel, and the top seven bits are ignored. Note that you can therefore use the ASCII characters ‘1’ and ‘0’ to set individual bits to 1 and 0:

 

DATA

 

 

 

 

 

 

 

 

 

CH2

 

CH1

 

 

 

 

 

 

 

 

 

 

 

OUTPUT2

 

OUTPUT1

 

 

 

 

 

 

 

 

 

 

 

 

 

ASCII

 

 

ignored

 

 

 

LSB

 

 

 

 

 

 

 

 

 

 

 

 

 

D7 D6 D5 D4 D3 D2 D1

 

D0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

1

1

0

0

0

 

0

0

 

remains unchanged

 

1

0

0

1

1

0

0

0

 

1

1

 

remains unchanged

Example

 

 

 

 

 

 

 

 

 

 

 

 

 

:ARM:SOUR IMM

 

 

 

 

 

 

Set continuous mode

 

 

:DIG:PATT:SEGM1:DATA1 #1501011 Set up pattern data for channel 1

 

 

:DIG:PATT:SEGM1:LENG 5

 

 

 

Set pattern length (last bit) to 5

 

 

:DIG:PATT ON

 

 

 

 

 

 

Switch on PATTERN mode

 

51

Page 51
Image 51
Agilent Technologies 660MHz, Agilent 81130A 400 manual DIGPATTSEGM1DATA2 #1501011