# :MEASure:VERTical:PPHRatio

Peak-to-Peak at Hit Ratio Commands

- :MEASure:VERTical:PPHRatio
- :MEASure:VERTical:PPHRatio:FAVorite
- :MEASure:VERTical:PPHRatio:LOCation?
- :MEASure:VERTical:PPHRatio:REGion
- :MEASure:VERTical:PPHRatio:SOURce
- :MEASure:VERTical:PPHRatio:STATus?
- :MEASure:VERTical:PPHRatio:STATus:DETails?
- :MEASure:VERTical:PPHRatio:STATus:REASon?
- :MEASure:VERTical:PPHRatio:THRatio
- :MEASure:VERTical:PPHRatio:UNITs
- :MEASure:VERTical:PPHRatio:UREFerence:STATe
- :MEASure:VERTical:PPHRatio:UREFerence:VALue

## Command Syntax

    :MEASure:VERTical:PPHRatio

## Query Syntax

    :MEASure:VERTical:PPHRatio?

## Description

Moves the Peak-Peak at Hit Ratio measurement to the top of the Results table. Displays the measurement if it is not already shown on the table. The query form of the command returns the measured value. Sources can be any displayed waveform (NRZ or PAM), waveform memory, or function. For example, CHAN1_1, WMEMory1, or FUNCtion1.

## Measurement Ready?

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

    if ('CORR' in Infiniium.query(':MEASure:VERTical:PPHRatio:STATus?')):
    	measurement = Infiniium.query(':MEASure:VERTical:PPHRatio?')

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:VERTical:PPHRatio:COUNt?') >= Infiniium.query(':ACQuire:COUNt?')):
    	measurement = Infiniium.query(':MEASure:VERTical:PPHRatio?')

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:VERTical:PPHRatio?` query after making the proper instance settings.

If a measurement is installed into Results table (using the `:MEASure:VERTical:PPHRatio` 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.

## Measurement Identification

Avoid subtle programming errors! To ensure that the correct measurement is installed or queried, always explicitly identify a measurement when installing a measurement or querying a measured value, status, or detail. To identify a measurement, specify the measurement's source waveform (`:SOURce` child command). With some measurements, you may also need to specify other identifying values. Generally, when selecting a measurement using Infiniium's GUI, if a dialog appears prompting you to select values, you should explicitly specify these values when remotely identifying the measurement.

For example, to return the status of the `:MEASure:VERTical:PPHRatio` measurement:

    Infiniium.write(':MEASure:VERTical:PPHRatio:SOURce CHAN1_1')
    if Infiniium.query(':MEASure:VERTical:PPHRatio:STATus?') == 'CORR';
        measurement = Infiniium.query(':MEASure:VERTical:PPHRatio?')

Child commands for measurement identification:

- `:MEASure:VERTical:PPHRatio:SOURce`
- `:MEASure:VERTical:PPHRatio:THRatio`
- `:MEASure:VERTical:PPHRatio:REGion`

## Example Command Sequence

    :MEASure:VERTical:PPHRatio:SOURce CHAN1_1
    :MEASure:VERTical:PPHRatio
    :MEASure:VERTical:PPHRatio?