# :LTESt:LLINe:SWAVeform:DIFF{N}:STATe

:LTESt Limit Line Commands

- :LTESt:LLINe:TEST{N}:MODE
- :LTESt:LLINe:TEST{N}:STATe
- :LTESt:LLINe:SIMage:FNAMe
- :LTESt:LLINe:SIMage:FNAMe:AUPDate
- :LTESt:LLINe:SIMage:FNAMe:USTandard
- :LTESt:LLINe:SIMage:FTYPe?
- :LTESt:LLINe:SIMage:IMETadata
- :LTESt:LLINe:SIMage:INVert
- :LTESt:LLINe:SIMage:MONochrome
- :LTESt:LLINe:SIMage:SAVE
- :LTESt:LLINe:SIMage:SINClude
- :LTESt:LLINe:SIMage:STATe
- :LTESt:LLINe:SIMage:WINDow
- :LTESt:LLINe:SSUMmary:FNAMe
- :LTESt:LLINe:SSUMmary:STATe
- :LTESt:LLINe:SWAVeform:CHANnel{N}:FNAMe
- :LTESt:LLINe:SWAVeform:CHANnel:FTYPe
- :LTESt:LLINe:SWAVeform:CHANnel{N}:STATe
- :LTESt:LLINe:SWAVeform:CHANnel{N}:WMEMory
- :LTESt:LLINe:SWAVeform:CMODe{N}:FNAMe
- :LTESt:LLINe:SWAVeform:CMODe:FTYPe
- :LTESt:LLINe:SWAVeform:CMODe{N}:STATe
- :LTESt:LLINe:SWAVeform:CMODe{N}:WMEMory
- :LTESt:LLINe:SWAVeform:DIFF{N}:FNAMe
- :LTESt:LLINe:SWAVeform:DIFF:FTYPe
- :LTESt:LLINe:SWAVeform:DIFF{N}:STATe
- :LTESt:LLINe:SWAVeform:DIFF{N}:WMEMory
- :LTESt:LLINe:SWAVeform:FUNCtion{N}:FNAMe
- :LTESt:LLINe:SWAVeform:FUNCtion{N}:STATe
- :LTESt:LLINe:SWAVeform:FUNCtion{N}:WMEMory
- :LTESt:LLINe:SWAVeform:RESet

## Command Syntax

    :LTESt:LLINe:SWAVeform:DIFF{N}:STATe {DISK | MEMory | OFF}

{N} identifies the differential waveform, which must be selected from "<connection1-8>_<ch1,3,5,7>". For example, the differential waveform of connection 4 channels 1 and 2 would be identified as DIFF4_1.

## Query Syntax

    :LTESt:LLINe:SWAVeform:DIFF{N}:STATe?

## Description

Specifies the reporting action for the selected differential waveform upon completion of limit testing for a limit line test. Use the command argument to select or turn off the reporting action. To disable the reporting action of all channel, common-mode, differential, and function waveforms, use the `:LTESt:LLINe:SWAVeform:RESet` command.

To turn on limit testing for a limit line test, use the `:LTESt:LLINe:TEST{N}:STATe` command.

Command Arguments
Argument | Description
--- | ---
DISK | Saves the waveform to a file (.h5) in the `%USER_DATA_DIR%\Limit Lines` folder. Use the `:LTESt:LLINe:SWAVeform:DIFF{N}:FNAMe` command to specify the file name.
MEMory | Saves the waveform to a memory location. Use the `:LTESt:LLINe:SWAVeform:DIFF{N}:WMEMory` command to specify the memory location.
OFF | Turns off the saving of a differential waveform.

    :CHANnel1_1:DISPlay ON
    :CHANnel1_2:DISPlay ON
    :DIFF1:DMODe ON
    :SYSTem:AUToscale

    //  Load and start limit line test.
    :LLINe1:LOAD:FNAMe "%USER_DATA_DIR%\Limit Lines\Golden Test.lltx"
    :LLINe1:SOURce DIFF1
    :LLINe1:DISPlay ON  //  Display first limit line test.//  Configure "Save Differential Waveform" reporting.
    :LTESt:LLINe:SWAVeform:RESet  //  Turn saving of all waveforms off.
    :LTESt:LLINe:SWAVeform:DIFF1:FNAMe "%USER_DATA_DIR%\Waveforms\FailDiffWaveform.h5"  //  Waveform file name.
    :LTESt:LLINe:SWAVeform:DIFF1:STATe DISK  //  Save waveform to file.//  Run limit testing.
    :LTESt:LLINe:TEST1:MODE SOFailure  //  Stop limit testing on fail condition.
    :LTESt:LLINe:TEST1:STATe ON  //  Enable limit testing.
    :ACQuire:STOP
    :ACQuire:CDISplay  //  Clear existing waveform data.
    :ACQuire:RUN  //  Enable data acquisition.