| Home > C: Programming > Function descriptions > | History back Previous chapter Next chapter Print |
is_Trigger |
|
uEye Camera Manual Version 4.00
|
|
USB 2.0 USB 3.0 GigE |
USB 2.0 USB 3.0 GigE |
Syntax
INT is_Trigger (HIDS hCam, UINT nCommand, void* pParam, UINT cbSizeOfParam)
Description
is_Trigger() activates the burst trigger mode in GigE uEye cameras. In burst trigger mode, the camera captures a series of images in rapid succession on receipt of a single trigger signal. The trigger signal can be generated by the software (is_FreezeVideo()) or transmitted via the digital input of the camera. The burst images are captured and transferred at maximum speed. The maximum speed depends on the pixel clock parameter (see is_PixelClock()) and the exposure time parameter (see is_Exposure()). is_Transfer() allows adjusting the latency of image data transfer.
The nCommand input parameter is used to select the function mode. The pParam input parameter depends on the selected function mode. If you select functions for setting or returning a value, pParam contains a pointer to a variable of the UINT type. The size of the memory area to which pParam refers is specified in the cbSizeOfParam input parameter.
|
|
|
|
|
|
Input parameters
hCam |
Camera handle |
||||||||||||
|
|||||||||||||
pParam |
Pointer to a function parameter, whose function depends on nCommand. |
||||||||||||
cbSizeOfParam |
Size (in bytes) of the memory area to which pParam refers. |
||||||||||||
Contents of the RANGE_OF_VALUES_U32 structure
UINT |
u32Minimum |
Minimum value |
UINT |
u32Maximum |
Maximum value |
UINT |
u32Increment |
Increment |
UINT |
u32Default |
Default value |
Return values
IS_INVALID_CAMERA_HANDLE |
Invalid camera handle |
IS_INVALID_PARAMETER |
One of the submitted parameters is outside the valid range or is not supported for this sensor or is not available in this mode. |
IS_NO_SUCCESS |
General error message |
IS_NOT_SUPPORTED |
The camera model used here does not support this function or setting. |
IS_SUCCESS |
Function executed successfully |
Related functions
UINT nTriggerBurstSizeSupported = 0;
INT nRet = is_Trigger(m_hCam,
IS_TRIGGER_CMD_GET_BURST_SIZE_SUPPORTED,
(void*)&nTriggerBurstSizeSupported,
sizeof(nTriggerBurstSizeSupported)
);
if (nRet == IS_SUCCESS)
{
// Burst size supported
if (nTriggerBurstSizeSupported == 1)
{
RANGE_OF_VALUES_U32 rangeBurstSize;
nRet = is_Trigger(m_hCam,
IS_TRIGGER_CMD_GET_BURST_SIZE_RANGE,
(void*)&rangeBurstSize,
sizeof(rangeBurstSize)
);
if (nRet == IS_SUCCESS)
{
UINT nMin, nMax;
nMin = rangeBurstSize.u32Minimum;
nMax = rangeBurstSize.u32Maximum;
}
}
}
UINT nTriggerBurstSize = 0;
INT nRet = is_Trigger(m_hCam,
IS_TRIGGER_CMD_GET_BURST_SIZE,
(void*)&nTriggerBurstSize,
sizeof(nTriggerBurstSize)
);
nRet = is_Trigger(m_hCam,
IS_TRIGGER_CMD_SET_BURST_SIZE,
(void*)&nTriggerBurstSize,
sizeof(nTriggerBurstSize)
);