Sensoray 118 Manual de usuario Pagina 26

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 38
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 25
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)
Vista de pagina 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 37 38

Comentarios a estos manuales

Sin comentarios