# :MEASure:CLOCk:PPWidth

Pulse Width - Pulse Width Commands

- :MEASure:CLOCk:PPWidth
- :MEASure:CLOCk:PPWidth:FAVorite
- :MEASure:CLOCk:PPWidth:LOCation?
- :MEASure:CLOCk:PPWidth:PTYPe
- :MEASure:CLOCk:PPWidth:OCCurrences
- :MEASure:CLOCk:PPWidth:REGion
- :MEASure:CLOCk:PPWidth:SOURce
- :MEASure:CLOCk:PPWidth:STATus?
- :MEASure:CLOCk:PPWidth:STATus:DETails?
- :MEASure:CLOCk:PPWidth:STATus:REASon?
- :MEASure:CLOCk:PPWidth:UREFerence:STATe
- :MEASure:CLOCk:PPWidth:UREFerence:VALue

## Command Syntax

    :MEASure:CLOCk:PPWidth

## Query Syntax

    :MEASure:CLOCk:PPWidth?

## Description

This command moves the Pulse Width - Pulse Width measurement to the top of the Results table and displays the measurement if it is not already shown on the table.

The query form of the command returns the measured value.

The Pulse Width - Pulse Width measurement measures the positive (or negative) pulse width of the first cycle and subtracts it from the positive (or negative) pulse width of the second cycle for the first measurement result. Then, the second cycle of the waveform is measured and subtracted from the third cycle positive (or negative) pulse width for the second measurement result. This operation continues until all of the cycles of the waveform have been measured. Use `:MEASure:CLOCk:PPWidth:PTYPe` to specify whether positive or negative pulse widths are measured.

The following figure shows two Pulse Width - Pulse Width measurements.

All of the measurement results are used to compute the statistics. The statistics are the values accumulated over all of the trigger cycles that have occurred.

Use `:MEASure:CLOCk:PPWidth:REGion` to specify the waveform data region over which the measurement is made.

Sources can be any displayed waveform, waveform memory, or function. For example, CHAN1_1, WMEMory1, or FUNCtion1.

Use `:MEASure:TBASe:GENeral:METHod` to change the definition of the waveform's top/base. Use `:<waveform>:THReshold:GENeral:METHod` to change the definition of the waveform's threshold.

## Example Command Sequence

    :MEASure:CLOCk:PPWidth:SOURce CHAN1_1
    :MEASure:CLOCk:PPWidth:PTYPe POSitive
    :MEASure:CLOCk:PPWidth
    :MEASure:CLOCk:PPWidth?

## Measurement Ready?

To confirm that the measurement is ready to read, you can query the measurement's status:

    if ('CORR' in Infiniium.query(':MEASure:CLOCk:PPWidth:STATus?')):
    	measurement = Infiniium.query(':MEASure:CLOCk:PPWidth?')

If averaging is turned on (`:ACQuire:SMODe AVERage`), you can also confirm if the measurement result is ready by comparing the number of specified averages (`:ACQuire:COUNt?`) versus the number of measurement sweeps that have occurred (`:ACQuire:COUNt?`). The technique uses the `:COUNt?` common measurement query. For example,

    if (Infiniium.query(':MEASure:CLOCk:PPWidth:COUNt?') >= Infiniium.query(':ACQuire:COUNt?')):
    	measurement = Infiniium.query(':MEASure:CLOCk:PPWidth?')

You can also use an acquisition limit test to test that a number of waveforms or samples have completed before returning a measurement. Refer to the `:LTESt:ACQuire:CTYPe` command.

## Querying Measurement Results and Statistics

You can query measurement results using the `:MEASure:CLOCk:PPWidth?` query after making the proper instance settings.

If a measurement is installed into Results table (using the `:MEASure:CLOCk:PPWidth` command) and you have made the proper instance settings, you can query statistics using common child queries.

Also, you can query measurement results and statistics directly from the Results table (without having to make the proper instance settings beforehand). See Querying Measurement Results and Statistics.