# :FUNCtion:PARameters:DEConvolve:PEXTract

Remove S2P Parameters Commands

- :FUNCtion:PARameters:DEConvolve:ALIGn
- :FUNCtion:PARameters:DEConvolve:BANDwidth
- :FUNCtion:PARameters:DEConvolve:BANDwidth:AUTO
- :FUNCtion:PARameters:DEConvolve:BLIMit
- :FUNCtion:PARameters:DEConvolve:BSPan?
- :FUNCtion:PARameters:DEConvolve:CFRequency
- :FUNCtion:PARameters:DEConvolve:FMODel
- :FUNCtion:PARameters:DEConvolve:FNAMe
- :FUNCtion:PARameters:DEConvolve:FRELoad
- :FUNCtion:PARameters:DEConvolve:NGAin
- :FUNCtion:PARameters:DEConvolve:PEXTract
- :FUNCtion:PARameters:DEConvolve:PORDer

## Command Syntax

    :FUNCtionN:PARameters:DEConvolve:PEXTract {DIFFerential | CMODe | TPORt1 | TPORt2}

Where N identifies one of up to 64 possible operators {1:64} that can be defined as part of a math function. The operators are numbered in the order that they were originally added to the function.

## Query Syntax

    :FUNCtion{1:64}:PARameters:DEConvolve:PEXTract?

## Description

Specifies extracting 2-port information from a 4-port S-parameter file for an Remove s2p operator (`:FUNCtion:FOPerator`). The following table shows the relationship between the three commands used to define and extract the 2-port data from the S-parameter file.

DIFFerential
  Extracts s2p data from s4p file with differential mode data.
CMODe
  Extracts s2p data from s4p file with common mode data.
TPORt1
  Extracts s2p data from an s4p file selecting ports 1 and 2 or ports 1 and 3, depending on the state of `PORDer` as shown in the following table.
TPORt2
  Extracts s2p data from an s4p file selecting ports 1 and 3 or ports 2 and 4, depending on the state of `PORDer` as shown in the following table.

The `:FUNCtion:PARameters:DEConvolve:PEXTract` and `:FUNCtion:PARameters:DEConvolve:PORDer` commands are only available after an 4-port S-parameter file has been opened using the `:FUNCtion:PARameters:DEConvolve:FMODel` command.

Arguments and Dialog-Box Settings for 4-Port S-Parameters Files
Port Configuration in s4p File | 4 Port Numbering Argument (PORDer) | 2 Port Extraction Argument (PEXTract) | Flip Model Argument (FMODel)
--- | --- | --- | ---
| PORDer1324 | (1⇔2)TPORt1 (3⇔4)TPORt2 | OFF
| PORDer1234 | (1⇔3)TPORt1 (2⇔4)TPORt2 | OFF
| PORDer1324 | (1⇔2)TPORt1 (3⇔4)TPORt2 | ON
| PORDer1234 | (1⇔3)TPORt1 (2⇔4)TPORt2 | ON

## Example Command Sequence

    :FUNCtion2:FOPerator DEConvolve
    :FUNCtion2:PARameters:DEConvolve:FNAMe "C:\Users<user_name>\Documents\Keysight\Infiniium\S-Parameter Data\DUT_4.s4p"
    :FUNCtion2:PARameters:DEConvolve:FMODel ON  // Flips  S-parameters ports
    :FUNCtion2:PARameters:DEConvolve:PORDer PORDer1234  // Port order in file
    :FUNCtion2:PARameters:DEConvolve:PEXTract TPORt2  // Extract port data
    :FUNCtion2:COLor TCOLor4
    :FUNCtion2:DISPlay ON
    *OPC?
    …  //  Your code to synchronize execution timing.