# :FUNCtion:PATTern:MODE

:FUNCtion Define Commands

- :FUNCtion:COLor
- :FUNCtion:CONStant
- :FUNCtion:CWINdow
- :FUNCtion:DISPlay
- :FUNCtion:HORizontal:SCALing
- :FUNCtion:OPERand
- :FUNCtion:PATTern:FILE:GCODe
- :FUNCtion:PATTern:FILE:NAME
- :FUNCtion:PATTern:FILE:RELoad
- :FUNCtion:PATTern:INVert
- :FUNCtion:PATTern:KPATtern
- :FUNCtion:PATTern:MODE
- :FUNCtion:PATTern:TRACking
- :FUNCtion:SIGNal:TYPE
- :FUNCtion:SIGNal:TYPE:TRACking
- :FUNCtion:SNOise:CALibrate
- :FUNCtion:SNOise:SNValue:LEVel{0:3}?
- :FUNCtion:UNAMe

## Command Syntax

    :FUNCtionN:PATTern:MODE {ADETect | KPATtern | PFILe}

Where N identifies one of sixty four {1:64} math functions that you can create. For example, `:FUNCtion2`.

## Query Syntax

    :FUNCtionN:PATTern:MODE?

## Description

For data measurements like BER/SER (Bit/Symbol Error Ratio) where the measurement must know the pattern of a data signal, this command selects how the pattern is determined:

- `ADETect` — (Auto Detect) This option tells the oscilloscope to automatically determine the pattern length and pattern by looking for at least two error-free copies of an identical repeating bit pattern in acquisition memory.

- `KPATtern` — (Known Pattern) This option lets you select the pattern from a list of known patterns (see `:FUNCtion:PATTern:KPATtern`).

- `PFILe` — (Pattern File) This option lets you load a pattern file that tells the oscilloscope the pattern length and pattern to measure against.

  Use the `:FUNCtion:PATTern:FILE:NAME` command to select the pattern file.