Analog Outputs
Put_DAC(2)
This function outputs an analog voltage on selected DAC (Digital to Analog Converter) channel.
A constant or a variable may be used as the output Value.
Parameters
DAC# Identifies which DAC channel is to be read
• can be DAC1 or DAC2
Value The digital value of the output voltage
• The scale is 0-32767 = 0.0 to 10.0 volts.
Returns
0 – new value did not go out.
1 – new value output on DAC.
Error Codes
Bad_ID = incorrect DAC ID was used.
Auto_Run = Trying to access a Automated DAC is not allowed.
Examples
Put_DAC(DAC1, 16383) ; Output 5 volts on DAC1 signal
or
User1=16383
Put_PWM(PWM1, User1) ; a 50% pulse wave is output on Output 1
1310 Vehicle Control System Users Manual Release Rev B Page 30 of 51