K8062 dll - Get functions

Hi everyone,

I recently started working on a program for the Velleman K8062 (VM116) using the [color=#0000BF]k8062d.dll[/color] dll in Visual Basic 2010.
Now I have got connection with the interface and I can set data of different channels but I came to the problem where I want to GET information and not only set it.

My code is:

    Private Declare Sub StartDevice Lib "k8062d.dll" ()
    Private Declare Sub SetData Lib "k8062d.dll" (ByVal Channel As Integer, ByVal Data As Integer)
    Private Declare Sub SetChannelCount Lib "k8062d.dll" (ByVal Count As Integer)
    Private Declare Sub StopDevice Lib "k8062d.dll" ()

Is there any way of using something like this

    Private Declare Sub GetChannelCount Lib "k8062d.dll" ()
    Private Declare Sub GetData Lib "k8062d.dll" (ByVal Channel as Integer)

in a correct way?

Thanks,

Merijn

I’m sorry there are no such ‘get’ functions in the k8062d.dll.
I think your application software anyhow “knows” the settings sent to the K8062 card…