Temperature
Top  Previous  Next

Description

Returns or sets the row value of the sensor's temperature.


Syntax


[VB]
objActiveDcam.Temperature [= Value]


[C/C++]
HRESULT get_Temperature( long *pTemperature );
HRESULT put_Temperature( long Temperature );



Data Type
[VB]

Long

Parameters
[C/C++]

pTemperature [out,retval]  
Pointer to the current temperature value  
Temperature [in]  
The temperature value to be set  


Return Values


S_OK  
Success  
E_FAIL  
The temperature control is not available for the selected camera  
E_INVALIDARG  
The value is out of range  
 

Example


The following VB example reports the sensor's temperature.

MsgBox ActiveDcam1.Temperature/10

 

Remarks


This property returns the camera sensor's current temperature and sets the value for the target temperature. The reported value is 10 times higher than the absolute value of the temperature. Note that this property returns and sets different values. The value set is a target temperature which the camera will try to achieve when switched to the automatic temperature control mode (see TemperatureControl). The value reported is an actual temperature of the camera sensor.

Note that the property is available only if the currently selected camera supports software temperature control.