Pepper-computer Modular Computers RS485 Bedienungsanleitung Seite 252

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 320
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 251
SMART I/O User’s Manual
October 01, 1996
©1996 PEP Modular Computers GmbH
Page 5 - 96
Chapter 5 Analog Modules
5.4.8.3 SMADC1GetVRaw
Syntax
error_code SMADC1GetVRaw(u_int8 PortNr, u_int8
Channel, int16 *pValue);
Description
This function fetches the conversion result of a selected channel without
performing a gain or offset correction. The result is always a signed integer
value.
Input
u_int8 PortNr
SM-Port to be accessed
u_int8 Channel
Number of the ADC input channel to access
(0-3)
int16 *pValue
Pointer to the location where the conversion
result will be stored
Output
error_code SUCCESS
E_SEEK
if module was not initialised
E-BMODE
if the module is unknown
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
Example
RetVal = SMADC1GetVRaw(0, 2, 0x07FF);
Value (16-bit HEX)
Unipolar Bipolar
Positive Full-Scale $0FFF Positive Full-Scale $07FF
+1LSB $0001 +1LSB $0001
0 $0000 -1LSB $FFFF
Negative Full-Scale $F800
Seitenansicht 251
1 2 ... 247 248 249 250 251 252 253 254 255 256 257 ... 319 320

Kommentare zu diesen Handbüchern

Keine Kommentare