- 13 Jan 2024
- 1 Minute to read
- Print
- PDF
Read first line info block
- Updated on 13 Jan 2024
- 1 Minute to read
- Print
- PDF
Decoding of the first line info block
Pixel | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Line 0 | Marker | Serial number | Marker | Image count | Exposure time | Marker | Line time | Encoder clocks | Error code | Time stamp | Marker |
Serial number
Structure
The serial number consists of two parts.
SN first part | SN second part | ||
---|---|---|---|
Byte 3 | Byte 2 | Byte 1 | Byte 0 |
Px1 | Px2 | Px3 | Px4 |
Decoding
The decoding of the serial number is:
The first part of the serial number S1 = Px1 × 256 + Px2
The second part of the serial number S2 = Px3 × 256 + Px4
Example
S1 = 156 × 256 + 64 = 40000
S2 = 0 × 256 + 157 = 157
Image count
Structure
Image count | |
---|---|
Byte 1 | Byte 0 |
Px6 | Px7 |
Decoding
The decoding of the image count is:
Ic = Px6 × 256 + Px7
Example
Ic = 1 × 256 + 120 = 376
Exposure time
Structure
Exposure time clocks | |
---|---|
Byte 1 | Byte 0 |
Px8 | Px9 |
Decoding
The decoding of the exposure time is:
Et = (Px8 × 256 + Px9) / fa
fa (10k, 15k) = 50 Mhz
fa (8k) = 80 Mhz
Example
Et = (5 × 256 + 220) / 50 = 50 µs
Line time
Structure
Line time clocks | ||
---|---|---|
Byte 2 | Byte 1 | Byte 0 |
Px11 | Px12 | Px13 |
Decoding
The decoding of the Line time is:
Lt = (Px11 × 216 + Px12 × 28 + Px13) / 100
Example
Lt = (0 × 216 + 21 × 28 + 124) / 100 = 55 µs
Encoder clocks
Structure
Encoder clocks | |||
---|---|---|---|
Byte 3 | Byte 2 | Byte 1 | Byte 0 |
Px14 | Px15 | Px16 | Px17 |
Decoding
The decoding of the encoder clocks is:
Ec = Px14 × 232 + Px15 × 216 + Px16 × 28 + Px17
Time stamp
Structure
Time [s] | Time [¼ ms] | |
---|---|---|
Byte 2 | Byte 1 | Byte 0 |
Px19 | Px20 | Px21 |
Decoding
The decoding of the time stamp is:
Ts = (Px19 × 216 + Px20 × 28 + Px21) / 4