uEye Camera Manual Version 4.90
![]() |
![]() |
USB 3.0 |
USB 3.0 |
Syntax
INT is_DeviceFeature (HIDS hCam, UINT nCommand, void* pParam, UINT cbSizeOfParam)
Description
Using is_DeviceFeature() you can configure special camera functions provided by specific uEye models:
•USB 3 uEye CP Rev. 2: You can query the temperature state of the camera. It is important to monitor the temperature state if you have activated the internal image memory of the camera (see Using the internal image memory).
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.

Fig. 217: Temperature state
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. |
||
Status flags from DEVICE_FEATURE_MODE_CAPS
IS_DEVICE_FEATURE_CAP_TEMPERATURE_STATUS |
Monitoring the temperature state is supported. The following message are possible: •0 = TEMPERATURE_CONTROL_STATUS_NORMAL •1 = TEMPERATURE_CONTROL_STATUS_WARNING •2 = TEMPERATURE_CONTROL_STATUS_CRITICAL |
Related functions
•Using the internal image memory
// Is monitoring the temperature status supported?
INT nFeatures = 0;
is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_SUPPORTED_FEATURES, &nFeatures, sizeof(nFeatures));
if ((nFeatures & IS_DEVICE_FEATURE_CAP_TEMPERATURE_STATUS) == IS_DEVICE_FEATURE_CAP_TEMPERATURE_STATUS)
{
…
}
// Query the temperarture status
INT nTemperatureStatus = 0;
is_DeviceFeature(hCam, IS_DEVICE_FEATURE_CMD_GET_TEMPERATURE_STATUS, &nTemperatureStatus, sizeof(nTemperatureStatus));
if (nTemperatureStatus == TEMPERATURE_CONTROL_STATUS_CRITICAL)
{
…
}
else if (nTemperatureStatus == TEMPERATURE_CONTROL_STATUS_WARNING)
{
…
}
else if (nTemperatureStatus == TEMPERATURE_CONTROL_STATUS_NORMAL)
{
…
}
Suggestion for improvement? Send us your short
Feedback on this chapter.
Thank you very much!
For technical questions please contact your local distributor or use the support form on our website.