EasyManuals Logo

Basler GigE VISION CAMERAS User Manual

Basler GigE VISION CAMERAS
234 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #216 background imageLoading...
Page #216 background image
Chunk Features AW00118303000
208 Basler racer GigE
11.6 Encoder Counter
The encoder counter chunk indicates the value of the Shaft Encoder Module Counter parameter at
the time of the occurrence of a frame trigger. When the encoder counter chunk is enabled, a chunk
is added to each frame containing the value of the Shaft Encoder Module Counter parameter. The
encoder counter chunk is a 16 bit value. The minimum value is 0 and the maximum is 32767.
The Shaft Encoder Module Counter is part of the shaft encoder module. See the Shaft Encoder
Module section for more information amount the shaft encoder module, about the Shaft Encoder
Module Counter, and about its possible modes of incrementing.
To enable the encoder counter chunk:
Use the Chunk Selector to select the Encoder Counter chunk.
Use the Chunk Enable parameter to set the value of the chunk to true.
Once the encoder counter chunk is enabled, the camera will add an encoder counter chunk to each
acquired frame.
To retrieve data from a chunk appended to an frame that has been received by your PC, you must
first run the frame and its appended chunks through the chunk parser included in the pylon API.
Once the chunk parser has been used, you can retrieve the encoder counter information by doing
the following:
Read the value of the Chunk Encoder Counter 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 encoder
counter chunk, run the parser, and retrieve the encoder counter chunk data:
// make chunk mode active and enable Encoder Counter chunk
Camera.ChunkModeActive.SetValue( true );
Camera.ChunkSelector.SetValue( ChunkSelector_ChunkShaftEncoderCounter );
Camera.ChunkEnable.SetValue( true );
// retrieve date from the chunk
IChunkParser &ChunkParser = *Camera.CreateChunkParser();
GrabResult Result;
StreamGrabber.RetrieveResult( Result );
ChunkParser.AttachBuffer( (unsigned char*) Result.Buffer(),
Result.GetPayloadSize() );
int64_t EncoderCounter = Camera.ChunkShaftEncoderCounter.GetValue();
The chunk mode must be made active before you can enable the time stamp
feature or any of the other chunk features. Making the chunk mode inactive
disables all chunk features.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Basler GigE VISION CAMERAS and is the answer not in the manual?

Basler GigE VISION CAMERAS Specifications

General IconGeneral
BrandBasler
ModelGigE VISION CAMERAS
CategoryDigital Camera
LanguageEnglish

Related product manuals