EasyManua.ls Logo

Balluff MATRIX VISION mvBlueNAOS - Working with Event Control

Balluff MATRIX VISION mvBlueNAOS
292 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
130
1.18.1.3.3 Programming multiple AOIs
#include <mvIMPACT_CPP/mvIMPACT_acquire.h>
#include <mvIMPACT_CPP/mvIMPACT_acquire_GenICam.h>
...
GenICam::ImageFormatControl ifc( pDev );
ifc.mvMultiAreaMode.writeS( "mvMultiAreasCombined" );
ifc.mvAreaSelector.writeS( "mvArea0" );
ifc.mvAreaEnable.write( bTrue );
ifc.mvAreaOffsetX.write( 0 );
ifc.mvAreaOffsetY.write( 0 );
ifc.mvAreaWidth.write( 256 );
ifc.mvAreaHeight.write( 152 );
ifc.mvAreaSelector.writeS( "mvArea1" );
ifc.mvAreaEnable.write( bFalse );
ifc.mvAreaSelector.writeS( "mvArea2" );
ifc.mvAreaEnable.write( bFalse );
ifc.mvAreaSelector.writeS( "mvArea3" );
ifc.mvAreaEnable.write( bTrue );
ifc.mvAreaOffsetX.write( 0 );
ifc.mvAreaOffsetY.write( 0 );
ifc.mvAreaWidth.write( 256 );
ifc.mvAreaHeight.write( 152 );
ifc.mvAreaOffsetX.write( 1448 );
ifc.mvAreaOffsetY.write( 912 );
...
1.18.1.4 Working with Event Control
MATRIX VISION devices can generate Event notifications. An Event is a message that is sent to the host application
to notify it of the occurrence of an internal event. With "Setting -> Base -> Camera -> GenICam -> Event Control"
you can handle these notifications.
At the moment, it is possible to handle
• Exposure End (= sensor's exposure end)
• Line 4 (= DigIn0) Rising Edge
• Line 5 (= DigIn1) Rising Edge
• Frame End (= the camera is ready for a new trigger)
1.18.1.4.1 Setting Event notifications using wxPropView
To activate the notifications, just
1. Select the Event via "Setting -> Base -> Camera -> GenICam -> Event Control -> Event Selector", e.g.
ExposureEnd .
2. Set the "Event Notification" to "On" .
Afterwards, it is possible to attach a custom callback that gets called whenever the property is modified. E.g. if you
want to attach a callback to the Frame ID after the exposure was finished, you have to
1. select "Setting -> Base -> Camera -> GenICam -> Event Control -> Event Exposure End Data -> Event
Exposure End Frame ID",
2. right-click on the property, and
MATRIX VISION GmbH

Table of Contents