K8061 Questions

Hi, I’ve had the K8061 for a week, bought it as a kit and did it up in a day. Today at 1am after 4 days I succeeded to finish writing my first programming using C++ (via Bloodshed DevC++) and using OpenGL for the interface (fancy 3D stuff). Oh yeah had to modify the header slightly because the VC++ samples would not work on a proper compiler such as the GNU GCC! :slight_smile: (Hate MS)

I’ve succeeded to control all I/O and PWM (though I did get stuck along the way).

Now for a few questions:

a) The latest DLL and driver has a few new procedures:
ReadBackDigitalOut();
ReadBackAnalogOut();
ReadBackPWMOut();

I have searched the forum and did not understand the answers I found - please explain it in the dumbest form possible

b) My kit manual shows how to connect I&O digital and I&O analog but not the PWM.
Please bare in mind I am no expert in electronics (programming, control systems and mechanical engineering are my fields). Does it have to be connected similar to the digital out? i.e. via external supply in series with the PWM?

PWM -----[load]-----[5V]----- GND

c) This is the most important of the load, I have seen libusb for linux, and do not feel like trying to figure out how to make the k8061 work on linux (yet). Has anyone done this before? I know it has been done for the K8055.

Reason being this board is going to be used in a car project and I so don’t want the computer controlling it all crashing with a blue screen of death while driving.

Thanks guys.

a) You can use those functions to read the status of the outputs of the card.
That is not very important feature because you know in your software anyhow the status you have put to the outputs.

Example:

long lngAnalogOut[8];

lngDigitalOut = ReadBackDigitalOut(intCurrentCard);
lngPWMOut = ReadBackPWMOut(intCurrentCard);
ReadBackAnalogOut(intCurrentCard, lngAnalogOut);

You’ll find more detailed documentation of these functions from the document MAN_GB_K8061_DLL_v1_3.pdf
from
vel255.diinoweb.com/files/K8061_DLL_update.zip

b) The PWM output is similar open collector output as the digital outputs.

This is OK.

Is there no pure C++ source for the DLL? only borland, delphi, and VB?

Sorry, only the Delphi version of the source (for the original DLL) is available from: vel255.diinoweb.com/files/K8061_DLL_source.zip

Untested but found:
sourceforge.net/projects/k8061/