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 -
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 -
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 -
Exposure End Frame ID",
2. right-click on the property, and
Base -
Camera -
Base -
Camera -
GenICam -
Base -
Camera -
GenICam -
Event Control -
Event Control -
Event Exposure End Data -
GenICam -
Event Control"
Event Selector", e.g.
Event
MATRIX VISION GmbH
Need help?
Do you have a question about the MATRIX VISION mvBlueNAOS and is the answer not in the manual?