Programming Reference

SCPI Instrument Command List

Description

Use this command to set up a counted loop across one or more

 

segments.

 

 

If nested loops are used, the counted loop must be embedded into the

 

infinite loop completely.

 

Example

To set up an infinite loop over segment 2 to segment 4 and a counted loop

 

across segment 2 and segment 3:

 

 

:ARM:SOUR EXT1

Set arming source to EXT-IN

 

:ARM:MODE STAR

Set arming mode to started

 

:ARM:SENS POS

Arm on positive level

 

:DIG:PATT:LOOP:INF:STAR SEGM2

Set jump destination to segment 2

 

:DIG:PATT:LOOP 100

Set number of repetitions of

 

 

segment2 and segment 3

 

:DIG:PATT:LOOP:STAR SEGM2

Set start of counted loop

 

:DIG:PATT:LOOP:LENG 2

Set length of counted loop

 

:DIG:PATT ON

Switch on PATTERN mode

Command

:DIG:PATT:LOOP:INF

 

Long

:DIGital[:STIMulus]:PATTern:LOOP:INFinite[:STATe]

Form

Set & Query

 

Parameter

ON OFF 1 0

 

*RST value

ON

 

Description

Use this command to set up an infinite loop from the last used segment

 

to the destination segment.

 

 

The infinite loop is ignored, if :ARM:SOURce is IMMediate

 

(CONTINUOUS mode), since in continuous mode there has to be a jump

 

back to the start of the pattern (always from segment 4 to segment 1).

Example

To setup an infinite loop over segment 2 to segment 4:

 

:ARM:SOUR EXT1

Set arming source to EXT-IN

 

:ARM:MODE STAR

Set arming mode to started

 

:ARM:SENS POS

Arm on positive level

 

:DIG:PATT:LOOP:INF ON

Enable infinite loop

 

:DIG:PATT:LOOP:INF:STAR SEGM2

Set jump destination to segment 2

 

:DIG:PATT:LOOP 1

Disable counted loop

 

:DIG:PATT ON

Switch on PATTERN mode

46

Page 46
Image 46
Agilent Technologies Agilent 81130A 400, 660MHz manual Use this command to set up a counted loop across one or more