Pepper-computer Modular Computers RS485 Bedienungsanleitung Seite 177

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 320
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 176
SMART I/O Users Manual
©1996 PEP Modular Computers GmbHMarch 12, 1996 Page 5 - 21
5
Chapter 5 Analog Modules
5.1.8.6 SMDAD1PutVRaw
Syntax
error_code SMDAD1PutVRaw(u_int8 PortNr, u_int8
Channel, u_int16 Value);
Description
This function sets the selected DAC channel to the chosen value. No gain or
offset correction is performed.
Input
u_int8 PortNr
SM-Port number to be accessed
u_int8 Channel
Number of the DAC output channel to access
(0-1)
u_int16 Value
Value to be written
Output
error_code SUCCESS
E_SEEK
if module was not initialized
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 = SMDAD1PutVRaw(0, 1, 0x0FFF);
Value (16-bit HEX)
Unipolar Bipolar
Positive Full-Scale $0FFF Positive Full-Scale $0FFF
+1LSB $0001 +1LSB $0801
0 $0000 0 $0800
-1LSB $07FF
Negative Full-Scale $0000
Seitenansicht 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 319 320

Kommentare zu diesen Handbüchern

Keine Kommentare