Can I Connect @ k8055 and control diferent relays?

Hello there . i have 2 boards k8055 , can i connect both on my pc and control them separately ? exp. to control 16 relays.
i use vb6 code

[quote]i have 2 boards k8055 , can i connect both on my pc and control them separately ?[/quote]Yes, you can.

Use the function SetCurrentDevice to switch the control between the cards.
Function declaration for VB6.0:

Private Declare Function SetCurrentDevice Lib "k8055d.dll" (ByVal CardAddress As Long) As Long

Here an example if you have set the card addresses 0 and 1.
This code activates digital channel 4 of card #0 and activates digital channel 7 of card #1:

SetCurrentDevice (0) SetDigitalChannel 4 SetCurrentDevice (1) SetDigitalChannel 7

Please do not post the same question twice, your other post has been removed.

man thanks for reply , now i need to order about 20 k8055 for my project 4 each pc . 10000000000*600000000000 thanks really you save me !!

can’t find entry point setcurrentdevice in k8055d.dll
i ty the code you send me sir . this msg appears . i try
k8055d.dll 337kb size
k8055d.dll 19.5 kb size
no one works

you can use only 4 cards on single pc. Try using latest dll (v4.0) http://www.vellemanusa.com/support/downloads/?code=K8055

i download all the latest dll but SetCurrentDevice does not exist in that dll

Please make sure you removed all the old versions of the DLL.
Copy the new version to System32 folder (or SysWOW64 folder in 64-bit OS).

the same problem i try it in a new pc with the new dll i download but it say dll entry SetCurrentDevice does not exist
the new k8055d.dll i download is 63.5 kb

dir sir i solve the problem

before
SetCurrentDevice 0
and now
SetCurrentDevice (0)

i dont know why this occurs but it works now

You are right.
There was a mistake in my example code in the previous post. The parentheses were missing.
In Visual Basic 6.0, parentheses are required around the argument list in function calls.

Correct code:

SetCurrentDevice (0) SetDigitalChannel 4 SetCurrentDevice (1) SetDigitalChannel 7