
SMART I/O User’s Manual | Chapter 5 Analog Modules  | |||
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
5.5.8.6 SMDAC1PutVRaw
Syntax
error_code SMDAC1PutVRaw(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 and the given value will always be masked to a 
Input
u_int8 PortNr u_int8 Channel
u_int16 Value
Output
error_code
Example
Number of the DAC output channel to access 
Value to be written
SUCCESS  | if module was not initialized  | 
E_SEEK  | |
if the module is unknown  | 
or standard 
RetVal = SMDAC1PutVRaw(0, 1, 0x0FFF);
  | 
  | 
  | 
  | 
  | 
  | 
  | Value  | 
  | 
  | |
  | 
  | 
  | 
  | Unipola  | r  | 
  | Bipolar  | 
  | 
  | |
  | 
  | 
  | Positive   | Positive   | $0FFF  | 
  | ||||
  | 
  | 
  | 
  | +1LSB  | $0001  | +1LSB  | $0801  | 
  | ||
0  | $0000  | 0  | $0800  | 
  | ||||||
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | $07FF  | ||
  | Page  | 5 - 118  | 
  | 
  | 
  | 
  | Negative   | $0000  | October 01, 1996  | |
  | 
  | ©1996 PEP Modular Computers GmbH  | 
  | |||||||
  | 
  | |||||||||
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | |||