Class
Accessible
Camera.Timing.Optimal
Syntax
uEye.Timing.Optimal(int s32Timeout, out int s32MaxPclk, out double f64MaxFramerate)
Description
IMPORTANT! The function for determining the optimal pixel clock cannot be used for uEye cameras when the internal image memory is enabled. This function is currently not supported by the following camera models: •UI-1007XS |
Using this method, you can determine the highest possible pixel clock frequency (with full resolution) for the current configuration. This method sets the pixel clock for which no transfer errors will occur during the timeout period. Moreover, it returns the highest frame rate available for this pixel clock frequency. This method can only be executed in freerun mode.
The methods should be executed in a separate thread and run in the background to allow for the computational load caused by additional color conversions, etc. Otherwise, it will not able to return the optimum values.
Changes to the image geometry or pixel clock affect the value ranges of the frame rate and exposure time. After executing Optimal(), calling the following classes/methods is recommended in order to keep the defined camera settings:
•Set the frame rate via Set()
•If you are using the uEye camera's flash function: IO
•For starting the image acquisition in freerun mode: Capture()
Parameter
s32Timeout [4000…20000] |
Sets the period (in milliseconds) during which no transfer error may occur. The adjustable range is between 4 and 20 seconds. The higher the value you set for this parameter, the more stable the determined pixel clock value will be. This, in turn, increases the runtime of the method correspondingly. |
s32MaxPclk |
Returns the maximum pixel clock frequency (in MHz). |
f64MaxFramerate |
Returns the maximum frame rate (in fps). |