Sensoray 118 Instrukcja Użytkownika Strona 26

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 38
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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)
Przeglądanie stron 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 37 38

Komentarze do niniejszej Instrukcji

Brak uwag