How to address multiple K8055 card's in VB.NET 2003

I’m using two 8055 units (address 0 and 3).
What is the correct way to address them ?
I’m using VB.net 2003 and the latest K8055.dll rev302

Now I’m using this methode :
Opendevice (0)
bla
bla
bla
Closedevice ()

Opendevice(3)
bla
bla
bla
Closedevice ()

Is this the correct and fastest way to do this ?
Because now I have the problem that after some time the software is running the card(0) doesn’t work and all the data is going to the card(3)

The fastest way is to use function SetCurrentDevice. No need to use CloseDevice or OpenDevice when addressing the cards.
You may download the manual from this link:
velleman.be/downloads/files/ … _2_001.zip

See the “New multicard function and procedures” on page 11 of the manual.

There is no example on how to use this command in VB.
I’m trying to do the following :

Private Declare Function SetcurrentDevice Lib “k8055.dll” (ByVal cardaddress As Integer) As Integer

SetCurrentDevice (0)
bla
bla
bla

SetCurrentDevice (1)
bla
bla
bla

The following error comes up : Unable to load DLL
If I use the opendevice command everything is ok
The dll (V3) is located at windows/system32

What is the problem ?

Your program tries to locate K8055.DLL.
The name of the DLL is: K8055D.DLL.

Try to change to: … Lib “K8055D.dll” …

Yes inderdeed it was a small syntax error from me.
Now it works perfect.

I have two K8055 unit’s on a win xp computer. They are used
to control my home (lights,jacuzzi,heating,…)
I write all the data in a acess database on a W2003 server.
The IIS server is running a asp web page to display all the info.
I have to use this workaround because the K8055D.dll doesn’t work well
on the W2003 server.

Again thanks for the quick information.

Nice that you got it working.
You have an interesting application for the K8055 cards.
Some time ago here in this forum was asked practical applications for the K8055 card.
This your application is a good example to add there…
practical uses for K8055

Hi,
I want to have additionnal Input and output, so i think i will buy another VM110 card.
But i don’t want to use some input, in the first card, and then another input on the second card. I want to use them in all time. Is it possible?

You may find a solution to this problem from the thread:
[forum.vellemanprojects.eu/t/k8055-linking-multiple-cards/1048/1)