Sensoray 118 Manuel d'utilisateur Page 26

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 38
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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)
Vue de la page 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 37 38

Commentaires sur ces manuels

Pas de commentaire