K8055 voltage out

Does anyone know where I can find the few lines of c++ code that allows simple analog voltage out on the k8055?

I was looking for such as:

  • output 3.3 volts
  • output 2.2 volts

this could be a windows or console operation. I am currently using WinXP. All samples work but are much more than what I need. I only need simple voltage output.

In your program you need just these functions:
OpenDevice(long CardAddress);
OutputAnalogChannel(long Channel, long Data);

Value 180 for Data gives an output about 3.3V and value 120 about 2.2V.

Remember to put to your program’s exit code :
CloseDevice();

Thanks for your reply. I was missing one little squiggly thingy. It works fine now.