# :LTESt:MEASure:MLIMit:STATe

:LTESt Measurement Setup Commands

- :LTESt:MEASure:MLIMit:CFMargin
- :LTESt:MEASure:MLIMit:CFResults
- :LTESt:MEASure:MLIMit:FREGion
- :LTESt:MEASure:MLIMit:LLIMit
- :LTESt:MEASure:MLIMit:SOFailure
- :LTESt:MEASure:MLIMit:SOURce:LOCation
- :LTESt:MEASure:MLIMit:SOURce:TYPE
- :LTESt:MEASure:MLIMit:STATe
- :LTESt:MEASure:MLIMit:ULIMit
- :LTESt:MEASure:MLIMit:UPACtion

## Command Syntax

    :LTESt:MEASure:MLIMitN:STATe {ON | OFF}

Where N identifies one of sixteen {1:16} limit tests. For example, `:MLIMit8`.

## Query Syntax

    :LTESt:MEASure:MLIMitN:STATe?

## Description

Turns the specified measurement limit test, 1 through 16, on or off. Source waveforms include channels, differential channels, and functions. Use the following sibling commands to configure the limit test:

- `:LTESt:MEASure:MLIMit:SOURce:TYPE` selects the type of measurement.
- `:LTESt:MEASure:MLIMit:SOURce:LOCation` selects the actual measurement.
- `:LTESt:MEASure:MLIMit:FREGion` selects when to fail a measurement.
- `:LTESt:MEASure:MLIMit:LLIMit` defines the lower limit for failing a measurement.
- `:LTESt:MEASure:MLIMit:ULIMit` defines the upper limit for failing a measurement.
- `:LTESt:MEASure:MLIMit:UPACtion` selects an action if the measurement cannot be performed.

As seen in the example in this topic, the following commands configure the reports of a completed limit test:

- `:LTESt:MEASure:SIMage:STATe`
- `:LTESt:MEASure:SWAVeform:CHANnel{N}:STATe`
- `:LTESt:MEASure:SWAVeform:DIFF{N}:STATe`
- `:LTESt:MEASure:SWAVeform:FUNCtion{N}:STATe`

## Example Command Sequence

The following example creates three measurement limit tests for the Crossing %, Fall Time, and Rise Time measurements shown in this picture. Notice that the reporting action commands for saving waveform, summary, and a screen capture apply to all active measurement limit tests. The first limit test to complete stops all tests and report actions are taken.

    :ACQuire:SINGle  //  Stop waveform acquisition.//  CREATE MEASUREMENT LIMIT TEST 4.
    :LTESt:MEASure:MLIMit4:SOURce:LOCation 1  //  Create test 4 for Crossing % measurement.
    :LTESt:MEASure:MLIMit4:LLIMit 23E-12  //  23 ps lower limit.
    :LTESt:MEASure:MLIMit4:ULIMit 24E-12  //  24 ps upper limit.
    :LTESt:MEASure:MLIMit4:FREGion OUTSide  //  Fail counted if outside of limit.
    :LTESt:MEASure:MLIMit4:UPACtion FAIL  //  If unable to perform test, fail.
    :LTESt:MEASure:MLIMit4:STATe ON  //  Turn Crossing % test on.//  CREATE MEASUREMENT LIMIT TEST 5.
    :LTESt:MEASure:MLIMit5:SOURce:LOCation 2  //  Create test 5 for Fall Time measurement.
    :LTESt:MEASure:MLIMit5:LLIMit 23E-12  //  23 ps lower limit.
    :LTESt:MEASure:MLIMit5:ULIMit 24E-12  //  24 ps upper limit.
    :LTESt:MEASure:MLIMit5:FREGion OUTSide  //  Fail counted if outside of limit.
    :LTESt:MEASure:MLIMit5:UPACtion FAIL  //  If unable to perform test, fail.
    :LTESt:MEASure:MLIMit5:STATe ON  //  Turn Fall Time test on.//  CREATE MEASUREMENT LIMIT TEST 6.
    :LTESt:MEASure:MLIMit6:SOURce:LOCation 3  //  Create test 6 for Rise Time measurement.
    :LTESt:MEASure:MLIMit6:LLIMit 23E-12  //  23 ps lower limit.
    :LTESt:MEASure:MLIMit6:ULIMit 24E-12  //  24 ps upper limit.
    :LTESt:MEASure:MLIMit6:FREGion OUTSide  //  Fail counted if outside of limit.
    :LTESt:MEASure:MLIMit6:UPACtion FAIL  //  If unable to perform test, fail.
    :LTESt:MEASure:MLIMit6:STATe ON  //  Turn Rise Time test on.//  CONFIGURE REPORTING FOR ALL 3 TESTS.
    :LTESt:MEASure:SWAVeform:CHANnel2_1:STATe DISK  //  Save channel 2A data to file.
    :LTESt:MEASure:SWAVeform:CHANnel2_1:WMEMory WMEMory3  //  Select memory 3.
    :LTESt:MEASure:SIMage:STATe ON  //  Save screen image file.//  START TESTING.
    :ACQuire:RUN  //  Start waveform acquisition.
    *OPC?  //  Wait for completion of tests.