Read each line info block
    • 13 Jan 2024
    • 1 Minute to read
    • PDF

    Read each line info block

    • PDF

    Article Summary

    Decoding of the each line info block

    Pixel0123456789
    RedMarkerError codeSpeed2highEncoder clocksNext line positionTime stampUnsupportedUnsupportedUnsupportedMarker
    GreenContinuous line countLine countLine time
    Blue

    Continuous line count

    Structure


    Continuous line count
    Byte 1Byte 0
    Px0RedPx0GreenPx0Blue

    Decoding

    The decoding of the continuous line count is:

    Clc = Px0Green × 256 + Px0Blue

    Example

    Clc = 217 × 256 + 127 = 55679

    svg-read each line-continuous line count_03
    Example: Decoding of continuous line count 

    Line count

    Structure


    Line count
    Byte 1Byte 0
    Px1RedPx1GreenPx1Blue

    Decoding

    The decoding of the line count is

    Lc = Px1Green × 256 + Px1Blue

    Example

    Lc = 0 × 256 + 0 = 0

    svg-read each line-line count_03Example: Decoding of line count

    Speed too high

    Structure

    Speed2high
    Bit 7Bit 6 – Bit 0
    Px2Red

    Line time

    Structure


    Line time clocks
    Bit 7 – Bit 4Bit 3 – Bit 0Byte 1Byte 0
    Px2RedPx2GreenPx2Blue

    Decoding

    The decoding of the line time is:

    Lt = (Px2Red × 216 + Px2Green × 28 + Px2Blue) / 100

    Example

    Lt = (0 × 216 + 21 × 28 + 124) / 100 = 55 µs

    svg-read each line-line time_03
    Example: Decoding of line time 

    Encoder clocks

    Structure

    Encoder clocks
    Byte 2Byte 1Byte 0
    Px3RedPx3GreenPx3Blue

    Decoding

    The decoding of the encoder clocks is:

    Ec = Px3Red × 216 + Px3Green × 28 + Px3Blue

    Next line trigger position

    Structure

    Next lt pos raw
    Byte 2Byte 1Byte 0
    Px4RedPx4GreenPx4Blue

    Decoding

    The decoding of the encoder clocks is:

    Nlp = (Px4Red × 216 + Px4Green × 28 + Px4Blue) / 256

    Time stamp

    Structure

    Time [s]Time [¼ ms]
    Byte 2Byte 1Byte 0
    Px5RedPx5GreenPx5Blue

    Decoding

    The decoding of the time stamp is:

    Ts = (Px5Red × 216 + Px5Green × 28 + Px5Blue) / 4


    Was this article helpful?

    What's Next