# :MEASure:USER:USER{N}

User-Defined Waveform Measurement Commands

- :MEASure:USER:USER{N}
- :MEASure:USER:USER{N}:ABBReviation?
- :MEASure:USER:USER{N}:CFILe
- :MEASure:USER:USER{N}:CFILe:CLEar
- :MEASure:USER:USER{N}:CFILe:RELoad
- :MEASure:USER:USER{N}:CFLoaded?
- :MEASure:USER:USER{N}:COMMents?
- :MEASure:USER:USER{N}:FAVorite
- :MEASure:USER:USER{N}:LOCation?
- :MEASure:USER:USER{N}:LSTatus?
- :MEASure:USER:USER{N}:LSTatus:REASon?
- :MEASure:USER:USER{N}:NAME?
- :MEASure:USER:USER{N}:REGion
- :MEASure:USER:USER{N}:SOURce{1:2}
- :MEASure:USER:USER{N}:STATus?
- :MEASure:USER:USER{N}:STATus:DETails?
- :MEASure:USER:USER{N}:STATus:REASon?
- :MEASure:USER:USER{N}:UREFerence:STATe
- :MEASure:USER:USER{N}:UREFerence:VALue

## Command Syntax

    :MEASure:USER:USER{1:8}

{1:8} selects one of eight possible user measurements.

## Description

Turns on the selected user-defined waveform measurement. The query form of the command returns the measured value. If the selected user measurement has not been created using the :CFILe child command, the value NaN (9.91E+37) is returned.

## Measurement Ready?

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

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

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

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

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