Chunk Features
254 Basler scout
10.4 Time Stamp
The Time Stamp feature adds a chunk to each acquired image containing a time stamp that was
generated when image acquisition was triggered.
The time stamp is a 32 bit value. The time stamp is based on the cycle timers for the IEEE 1394b
bus. The counters start at camera reset or at power off/on. The table below how the cycle timers
are assigned to the 32 bits in the chunk.
To enable the time stamp chunk:
Use the Chunk Selector to select the Time Stamp chunk.
Use the Chunk Enable parameter to set the value of the chunk to true.
Once the time stamp chunk is enabled, the camera will add a time stamp chunk to each acquired
image.
To retrieve data from a chunk appended to the image you must first run the image and its appended
chunks through the chunk parser that is included in the camera’s API. Once the chunk parser has
been used, you can retrieve the time stamp information by doing the following:
Read the value of the Chunk Time Stamp parameter.
You can set the Chunk Selector and Chunk Enable parameter value from within your application
software by using the pylon API. You can also run the parser and retrieve the chunk data. The
following code snippets illustrate using the API to activate the chunk mode, enable the time stamp
chunk, run the parser, and retrieve the frame counter chunk data:
// make chunk mode active and enable Time Stamp chunk
Camera.ChunkModeActive.SetValue( true );
Camera.ChunkSelector.SetValue( ChunkSelector_Timestamp );
Camera.ChunkEnable.SetValue( true );
// retrieve data from the chunk
Bits Description
0 ... 6 Seconds - counts in seconds. Wraps to zero after 127 seconds.
7 ... 19 Cycle Count - counts the number of 125 µs isochronous bus cycles.
Wraps to zero after counting to 7999.
20 ... 31 Cycle Offset - counts at 24.576 MHz and wraps to zero after
counting to 3071 (resulting in a 125 µs cycle)
The chunk mode must be active before you can enable the time stamp feature or
any of the other chunk feature. Making the chunk mode inactive disables all chunk
features.