# :TRIGger:PATTern:MODE

:TRIGger Pattern Commands

- :TRIGger:CHANnel:PATTern:STATe
- :TRIGger:PATTern:MODE
- :TRIGger:PATTern:REND
- :TRIGger:PATTern:RSTart
- :TRIGger:PATTern:TIME

## Command Syntax

    :TRIGger:PATTern:MODE  {ENTered | EXITed | LTHan | GTEXit | GTTout | RINSide | ROUTside
       | TPANd | TPNand}

## Query Syntax

    :TRIGger:PATTern:MODE?

## Description

In the Pattern trigger mode (see `:TRIGger:MODE`), this command selects the time the pattern must be present for in order to cause a trigger.

When the pattern consists of logic levels only, you have these options:

- `ENTered` — Triggers on the edge of the signal that makes the pattern true.
- `EXITed` — Triggers on the edge of the signal that makes the pattern false.
- `LTHan` — Triggers when the pattern is present for less than the specified `:TRIGger:PATTern:TIME`.
- `GTEXit` — When the pattern is present for greater than the specified `:TRIGger:PATTern:TIME`, triggers when the pattern ends (on the signal edge that makes the pattern invalid).
- `GTTout` — When the pattern is present for greater than the specified `:TRIGger:PATTern:TIME`, triggers when the time is exceeded.
- `RINSide` — Trigger when the pattern is present for a time within the range specified by the `:TRIGger:PATTern:RSTart` and `:TRIGger:PATTern:REND` values. The trigger occurs on the signal edge that makes the pattern invalid (like "on Exit").
- `ROUTside` — Trigger when the pattern is present for a time outside the range specified by the `:TRIGger:PATTern:RSTart` and `:TRIGger:PATTern:REND` values.

When the pattern includes an edge identifier, you have these options:

- `TPANd` — The trigger point is the edge AND the pattern on the remaining channels.
- `TPNand` — The trigger point is the edge AND NOT the pattern on the remaining channels.

Edges are identified when a signal passes through the trigger threshold voltage. The direction of the edge is determined based on hysteresis around the trigger threshold.

The combination of an edge and a pattern is known as a State trigger.