# :WAVeform:YFORmat:WORD:ENCoding:YORigin?

:WAVeform Y-Format Commands

- :WAVeform:YFORmat:ASCii:YDATa?
- :WAVeform:YFORmat:DOUBle:YDATa?
- :WAVeform:YFORmat:FLOat:YDATa?
- :WAVeform:YFORmat:IBLock:DOUBle:YDATa?
- :WAVeform:YFORmat:IBLock:FLOat:YDATa?
- :WAVeform:YFORmat:POINts?
- :WAVeform:YFORmat:WORD:ENCoding:CHIGh?
- :WAVeform:YFORmat:WORD:ENCoding:CLOW?
- :WAVeform:YFORmat:WORD:ENCoding:HOLE?
- :WAVeform:YFORmat:WORD:ENCoding:YINCrement?
- :WAVeform:YFORmat:WORD:ENCoding:YORigin?
- :WAVeform:YFORmat:WORD:YDATa?
- :WAVeform:YFORmat:XINCrement?
- :WAVeform:YFORmat:XORigin?

## Query Syntax

    :WAVeform:YFORmat:WORD:ENCoding:YORigin?

## Description

Returns the amplitude origin value used to scale the data points of Y-formatted 16-bit integer data(`:WAVeform:YFORmat:WORD:YDATa?`). The data values are raw analog-to-digital converter counts and must be converted to voltage units using the following waveform information:

Use the `:WAVeform:YFORmat:WORD:ENCoding:YINCrement?` query to return the Y origin value.

## Example Command Sequence

    # Get numeric values for later calculations.
    y_increment = float(Infiniium.query(":WAVeform:YFORmat:WORD:ENCoding:YINCrement?"))
    y_origin = float(Infiniium.query(":WAVeform:YFORmat:WORD:ENCoding:YORigin?"))

    # Get the waveform data.
    data_bytes = Infiniium.query_binary_values(
        ":WAVeform:YFORmat:WORD:YDATa?", datatype="s", container=bytes
    )

It is important to use the `:YINCrement?`, `:YORigin?`, and `:YDATa?` queries in sequence to get properly related results. Intervening commands can possibly cause a mismatch between the returned Y data, Y origin, or Y increment values.