Basler raL2048-48gm User Manual Page 217

  • Download
  • Add to my manuals
  • Print
  • Page
    / 238
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 216
AW00118302000 Chunk Features
Basler racer GigE 207
// enable the trigger counter chunks
Camera.ChunkSelector.SetValue( ChunkSelector_LineTriggerIgnoredCounter );
Camera.ChunkEnable.SetValue( true );
Camera.ChunkSelector.SetValue( ChunkSelector_FrameTriggerIgnoredCounter );
Camera.ChunkEnable.SetValue( true );
Camera.ChunkSelector.SetValue( ChunkSelector_LineTriggerEndToEndCounter );
Camera.ChunkEnable.SetValue( true );
Camera.ChunkSelector.SetValue( ChunkSelector_FrameTriggerCounter );
Camera.ChunkEnable.SetValue( true );
Camera.ChunkSelector.SetValue( ChunkSelector_FramesPerTriggerCounter );
Camera.ChunkEnable.SetValue( true );
To retrieve data from a chunk appended a 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 counter values from the chunks by doing the
following:
Read the value of the Chunk Line Trigger Ignored Counter parameter.
Read the value of the Chunk Frame Trigger Ignored Counter parameter.
Read the value of the Chunk Line Trigger End To End Counter parameter.
Read the value of the Chunk Frame Trigger Counter parameter.
Read the value of the Chunk Frames Per Trigger Counter parameter.
You can run the chunk parser and retrieve the counter values from within your application software
by using the pylon API. The following code snippet illustrates using the API to run the parser and
retrieve the frame counter chunk data:
// run the chunk parser
IChunkParser &ChunkParser = *Camera.CreateChunkParser();
GrabResult Result;
StreamGrabber.RetrieveResult( Result );
ChunkParser.AttachBuffer( (unsigned char*) Result.Buffer(),
Result.GetPayloadSize() );
// retrieve data from the chunks
int64_t LTIgnoredCounter = Camera.ChunkLineTriggerIgnoredCounter.GetValue();
int64_t FTIgnoredCounter = Camera.ChunkFrameTriggerIgnoredCounter.GetValue();
int64_t LTEECounter = Camera.ChunkLineTriggerEndToEndCounter.GetValue();
int64_t FTCounter = Camera.ChunkFrameTriggerCounter.GetValue();
int64_t FPTCounter = Camera.ChunkFramesPerTriggerCounter.GetValue();
For detailed information about using the pylon API, refer to the Basler pylon Programmer’s Guide
and API Reference.
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon Viewer, see Section 3.1 on page 23.
Page view 216
1 2 ... 212 213 214 215 216 217 218 219 220 221 222 ... 237 238

Comments to this Manuals

No comments