Balluff MATRIX VISION mvBlueNAOS Technical Manual page 214

Table of Contents

Advertisement

206
1.18.7.1.3.1 Start timer
Two timers are used for the "start timer". Timer1 defines the interval between two triggers. Timer2 generates the
trigger pulse at the end of Timer1.
The following sample shows a trigger
• which is generated every second and
• the pulse width is 10 ms:
#include <mvIMPACT_CPP/mvIMPACT_acquire.h>
#include <mvIMPACT_CPP/mvIMPACT_acquire_GenICam.h>
...
// Master: Set timers to trig image: Start after queue is filled
GenICam::CounterAndTimerControl catcMaster(pDev);
catcMaster.timerSelector.writeS( "Timer1" );
catcMaster.timerDelay.write( 0. );
catcMaster.timerDuration.write( 1000000. );
catcMaster.timerTriggerSource.writeS( "Timer1End" );
catcMaster.timerSelector.writeS( "Timer2" );
catcMaster.timerDelay.write( 0. );
catcMaster.timerDuration.write( 10000. );
catcMaster.timerTriggerSource.writeS( "Timer1End" );
See also
Counter And Timer Control (p. 73)
Note
Make sure the Timer1 interval must be larger than the processing time. Otherwise, the images are lost.
The timers are defined, now you have to do following steps:
1. Set the digital output, e.g. "Line 0",
2. connect the digital output with the inputs of the slave cameras, and finally
3. set the trigger source to the digital input, e.g. "Line4".
1.18.7.1.3.2 Set digital I/O
In this step, the signal has to be connected to the digital output, e.g. "Line0":
// Set Digital I/O
GenICam::DigitalIOControl io(pDev);
io.lineSelector.writeS( "Line0" );
io.lineSource.writeS( "Timer2Active" );
See also
Digital I/O Control (p. 80)
This signal has to be connected with the digital inputs of the slave cameras as shown in Figure 1 and 2.
MATRIX VISION GmbH

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MATRIX VISION mvBlueNAOS and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents