Basler raL2048-48gm Manuel d'utilisateur Page 210

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 238
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 209
Chunk Features AW00118302000
200 Basler racer GigE
11.3 Frame Counter
The Frame Counter feature numbers frames sequentially as they are acquired. When the feature
is enabled, a chunk is added to each completed frame containing the value of the counter.
The frame counter is a 32 bit value. The counter starts at 0 and wraps back to 0 after it reaches its
maximum. The counter increments by 1 for each acquired frame. Whenever the camera is powered
off, the counter will reset to 0.
Be aware that if the camera is acquiring frames continuously and continuous acquisition is stopped,
several numbers in the counting sequence may be skipped. This happens due to the internal
buffering scheme used in the camera.
Enabling the Frame Counter and Retrieving Chunk Data
To enable the Frame Counter chunk:
Use the Chunk Selector to select the Frame Counter chunk.
Use the Chunk Enable parameter to set the value of the chunk to true.
Once the frame counter chunk is enabled, the camera will add a frame counter chunk to each
acquired frame.
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 frame counter information by doing the
following:
Read the value of the Chunk Frame Counter parameter.
You can set the Chunk Selector and the 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 frame
counter chunk, run the parser, and retrieve the frame counter chunk data:
// make chunk mode active and enable Frame Counter chunk
Camera.ChunkModeActive.SetValue( true );
Camera.ChunkSelector.SetValue( ChunkSelector_Framecounter );
Camera.ChunkEnable.SetValue( true );
// retrieve date from the chunk
IChunkParser &ChunkParser = *Camera.CreateChunkParser();
GrabResult Result;
StreamGrabber.RetrieveResult( Result );
ChunkParser.AttachBuffer( (unsigned char*) Result.Buffer(),
The chunk mode must be made active before you can enable the frame counter
feature or any of the other chunk features. Making the chunk mode inactive
disables all chunk features.
Vue de la page 209
1 2 ... 205 206 207 208 209 210 211 212 213 214 215 ... 237 238

Commentaires sur ces manuels

Pas de commentaire