
Sensoray Model 118 Smart A/D™ Instruction Manual 24 Commands: Sensor Acquisition
6.3.3 GetAmbientTemp
Returns the temperature from an optional Smart A/D™
termination board such as Model 7409TB, 7409TF or
7409TC.
The returned temperature value is scaled to 0.10 °C/bit.
If no Sensoray termination board is connected to the
Smart A/D™, the GetAmbientTemp command will
return a meaningless value.
Useful for monitoring the ambient temperature at
thermocouple reference junctions, this function is also a
good debugging aid during Smart A/D™ installation.
Driver
// Return the ambient temperature in degrees C.
DOUBLE GetAmbientTemp( USHORT BasePort )
{
SendByte( BasePort, CMD_GET_AMBIENT );
return (DOUBLE) ReadWord( BasePort ) * 0.10;
}
Example
// Get the ambient temperature in degrees F.
DOUBLE AmbientDegF = GetAmbientTemp( MyBasePort ) * 1.8 + 32.0;
Command: (64)
Response: (TemperatureMSB),(TemperatureLSB)
Comentarios a estos manuales