How to address two K8055 boards in one application

Hi all,

I have to expand my numbers of digital channels from 8 to 16.
This is posible with the connection of a second 8055 board.
But I need to address all these 16 available digital channels in one application, which I develop in Delphi.
The command to set an digital channel is “PROCEDURE SetDigitalChannel(Channel: Longint);”
For “Channel” I can insert values from 1 to 8.
But what is to do if I like to set the next 8 channels from the second bord ?
Both boards have to be opened with “FUNCTION OpenDevice(CardAddress: Longint): Longint” at the same time.

Can someone please help me ?
Greetings
Thomas

You need to open all the cards first using the OpenDevice(CardAddress).
Alternatively you can use the function SearchDevices() to open all the cards.
To switch the control between the cards you can use the function SetCurrentDevice(CardAddress).

Please see also these threads:
viewtopic.php?f=3&t=4721
viewtopic.php?f=15&t=3036
viewtopic.php?f=15&t=3590

There is no SetCurrentDevice function for fast switching between the cards in the old K8055D.DLL.
You have to download the latest DLL for the K8055 from this page: velleman.eu/support/download … 8055&type=
Download the “Complete SDK Pack (Rev 4.0)”.

There is Delphi example and the DLL manual included to the package.

Please see also: viewtopic.php?f=4&t=6123

Hello VEL255,

thank you very much for the detailed answer.
I try it with the new DLL.

Thanks
Thomas