USB 3 uEye CP Rev. 2 |
USB 3 uEye CP Rev. 2 |
Syntax
INT is_Configuration (UINT nCommand, void* pParam, UINT cbSizeOfParam)
Description
From IDS Software Suite 4.81 on, the camera is operated with active image memory by default. Deactivation of the image memory is not possible any more. See IDS Camera Manager: Camera information.
With the "Compatibility mode" option, you can disable the internal image memory again. This corresponds to the camera behavior up to and including IDS Software Suite 4.80.2.
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 CONFIGURATION_SEL structure
INT |
IS_CONFIG_IMAGE_MEMORY_COMPATIBILITY_MODE_OFF |
Disables image memory compatibility mode |
INT |
IS_CONFIG_IMAGE_MEMORY_COMPATIBILITY_MODE_ON |
Enables image memory compatibility mode |
// Check, if compatibility mode is enabled
UINT nEnabled = 0;
INT nRet = is_Configuration(IS_CONFIG_CMD_GET_IMAGE_MEMORY_COMPATIBILIY_MODE, &nEnabled , sizeof(nEnabled));
if (IS_CONFIG_IMAGE_MEMORY_COMPATIBILITY_MODE_ON == nEnabled)
{
// compatibility mode is enabled
}
// Get default
INT nRet = is_Configuration(IS_CONFIG_CMD_GET_IMAGE_MEMORY_COMPATIBILIY_MODE_DEFAULT, &nEnabled , sizeof(nEnabled));
// Enable mode
nEnabled = IS_CONFIG_IMAGE_MEMORY_COMPATIBILITY_MODE_ON;
nRet = is_Configuration(IS_CONFIG_CMD_SET_IMAGE_MEMORY_COMPATIBILIY_MODE, &nEnabled , sizeof(nEnabled));