# :MEASure:DATA:UINTerval

Unit Interval Commands

- :MEASure:DATA:UINTerval
- :MEASure:DATA:UINTerval:DWMode
- :MEASure:DATA:UINTerval:FAVorite
- :MEASure:DATA:UINTerval:LOCation?
- :MEASure:DATA:UINTerval:NDRate
- :MEASure:DATA:UINTerval:OCCurrences
- :MEASure:DATA:UINTerval:REGion
- :MEASure:DATA:UINTerval:SOURce
- :MEASure:DATA:UINTerval:STATus?
- :MEASure:DATA:UINTerval:STATus:DETails?
- :MEASure:DATA:UINTerval:STATus:REASon?
- :MEASure:DATA:UINTerval:UREFerence:STATe
- :MEASure:DATA:UINTerval:UREFerence:VALue

## Command Syntax

    :MEASure:DATA:UINTerval

## Query Syntax

    :MEASure:DATA:UINTerval?

## Description

This command moves the Unit Interval 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.

To measure Unit Interval, `:CRECovery:MODE` must be performed to determine the clock locations.

The Unit Interval measurement searches your waveform for the narrowest data pulse and uses it as the ideal unit interval for computing the statistics.

There are two modes that can be used to find the data (see `:MEASure:DATA:UINTerval:DWMode`):

- In `AUTomatic` mode, the data rate is found by searching your waveform for the narrowest data pulse. When the Automatic mode has trouble finding the data rate due to excessive high-frequency jitter on the waveform, the Semi Automatic mode can be used.
- In the `SAUTomatic` mode, Infiniium starts by searching around the Nominal Data Rate that you specify then automatically finds the data rate. Use `:MEASure:DATA:UINTerval:NDRate` to specify the nominal data rate.

Use `:MEASure:DATA:UINTerval: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:DATA:UINTerval:SOURce CHAN1_1
    :MEASure:DATA:UINTerval
    :MEASure:DATA:UINTerval?

## Measurement Ready?

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

    if ('CORR' in Infiniium.query(':MEASure:DATA:UINTerval:STATus?')):
    	measurement = Infiniium.query(':MEASure:DATA:UINTerval?')

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

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

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