SMART I/O User's Manual
5.5.8.6 SMDAC1PutVRaw
Syntax
error_code SMDAC1PutVRaw(u_int8 PortNr, u_int8
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
12-bit value.
Input
u_int8 PortNr
u_int8 Channel
u_int16 Value
Output
error_code
Example
RetVal = SMDAC1PutVRaw(0, 1, 0x0FFF);
Positive Full-Scale
+1LSB
0
Page 5 - 118
SM-Port number to be accessed
Number of the DAC output channel to access
(0-5)
Value to be written
SUCCESS
E_SEEK
E-BMODE
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
Value (16-bit HEX)
Unipolar
$0FFF
$0001
$0000
©1996 PEP Modular Computers GmbH
Chapter 5 Analog Modules
Channel, u_int16 Value);
if module was not initialized
if the module is unknown
Bipolar
Positive Full-Scale
+1LSB
0
-1LSB
Negative Full-Scale
$0FFF
$0801
$0800
$07FF
$0000
October 01, 1996
Need help?
Do you have a question about the Modular Computers RS485 and is the answer not in the manual?