When the camera is in free run mode (default setting), the image acquisition happens at the fastest frame rate allowed by the current settings of the camera.
It is possible to switch the camera to a frame rate mode and control the acquisition frame rate.
Feature related parameters |
XI_PRM_ACQ_TIMING_MODE = Timing mode* |
XI_PRM_FRAMERATE = Frame Rate in Hz |
For camera families MQ, MD the XI_PRM_FRAMERATE reports current frame rate with same minimum and maximum.
For camera families CB, MC, MT, MX the XI_PRM_FRAMERATE reports the last frame-rate-limit set regardless of current frame-rate of the camera.
In TIMING_MODE_FRAME_RATE the acquisition of next frame is triggered from exact period generator in FPGA (e.g. 25.000Hz).
This mode is supported by camera families MQ, MD.
In TIMING_MODE_FRAME_RATE_LIMIT the acquisition of next frame is triggered by control engine in FPGA that limits the frame rate to frequency defined by parameter XI_PRM_FRAMERATE.
If real frame-rate of sensor is higher than limit - it is limited.
If real frame-rate is lower than limit - it is NOT limited.
This mode is supported by selected camera families: CB, MC, MT, MX
// set acquisition to frame rate mode
xiSetParamInt(h,XI_PRM_ACQ_TIMING_MODE, XI_ACQ_TIMING_MODE_FRAME_RATE);
// set frame rate
xiSetParamInt(h,XI_PRM_FRAMERATE,20);
// Start acqusition
xiStartAcquisition();
NOTE: The order of parameters setting is mandatory.
AcquisitionTimingMode = FrameRate
AcquisitionFrameRate = Frame-rate-in-Hz
|