DAC out function added