User manual

Table Of Contents
Part 6: IEEE 488.2 Command Reference
TRIG_PATTERN, TRPA
Description
The TRIG_PATTERN command defines a trigger pattern. The command specifies the logic level of the
sources C1 to C4 and External, and the states under which logic pattern a trigger can occur. This
command can be used even if the Pattern trigger is not activated.
The TRIG_PATTERN? query returns the current trigger pattern.
Command Syntax
TRIG_PATTERN [<source>,<state>,...<source>,<state>],STATE,<condition>
<source>:= <C1 to Cn, EX>
<state>:= {L, H}
<condition>:= {AND, OR, NAND, NOR}
While optional, at least one source state parameter should be set, otherwise there will be no meaningful
pattern. If a source state is not specified in the command, the source is set to the "X" (Don't Care) state.
Query Syntax
TRIG_PATTERN? [<source>,<state>,...<source>,<state>],STATE,<condition>
Response Format
TRIG_PATTERN [<source>,<state>,...<source>,<state>],STATE,<condition>
The response sends back only L (Low) or H (High) source states and ignores the X states.
Example (GPIB)
The following instruction configures the triggering logic pattern as CH 1 = H, CH 2 = L, CH 3 = X, CH 4 = H
and defines the condition binding them as NOR.
CMD$=“TRPA C1,H,C2,L,C4,H,STATE,NOR”: CALL IBWRT(SCOPE%,CMD$)
Related Commands
TRIG_COUPLING, TRIG_DELAY, TRIG_LEVEL, TRIG_MODE, TRIG_SELECT, TRIG_SLOPE
6-35