K8055 linking multiple cards

Hi
I would like to use the kit k8055 to control a series of flashing lights, however 10 channels is not enough therefore I would like to link more than one board. I can open both boards, however, how do I address each output individually? e.g. how can i turn on channel1 on board 1, and channel 1 on board 2 simultaneously?

hope you can help

many thanks, David

If you haven’t the latest K8055 DLL then download the following files from Vellaman download site.
The first file includes the latest DLL and the second file the manual.
In the manual see page 11 for the new functions of the DLL.

k8055dll_rev3_0_2.zip
k8055_dll_2_001.zip

Use SetCurrentDevice function to switch the control between the cards.
As in the oscilloscope screenshot below you’ll see there is about 2ms time delay between the digital output state change of the cards.

Trace 1 shows the digital channel 1 of card #0 and trace 2 shows the digital channel 1 of card #1.

Here the SetCurrentDevice is used.

The complete procedure in Borland C++Builder was:
{
SetCurrentDevice (0);
ClearAllDigital();
SetCurrentDevice (1);
ClearAllDigital();
SetCurrentDevice (0);
SetDigitalChannel(1);
SetCurrentDevice (1);
SetDigitalChannel(1);
}

Thanks very much, that was a great help. Just built a dummy program and all works as planned :smiley:

Hi,
Thanx, the above posts were very helpfull!

Unfortunately I’ve encountered a problem.
After setting another card active (with SetCurrentDevice)
and writing to a specific digital/analog channel,
another output channels were changing too
according to the channels which were set in the previous card.

For example while writing:

SetCurrentDevice (0);
SetDigitalChannel(1);
SetCurrentDevice (1);
SetDigitalChannel(2);

Card number 1 sets both digital channels 1 and 2,
instead of only channel 2.

I’m writing a programm in VB.NET with the latest version of the dll (2.0.0.1).

10x.
Max/

Please use the DLL rev 3.0.2.
I think it has different behavior.
velleman.be/downloads/files/ … v3_0_2.zip

Dear VEL255,

Sorry if this seems dumb to you, but I am having problems with my K8055 cards also. When I switch from card (1) to card (2) it works, but when I try it again it doesn’t work anymore?? (tried with coding and with the connect button. Software sais “card not found” and card (1) keeps working)

I am programming with Delphi 5. (also newer version at home, but currently using this one) And I am using the demo software from the CD-ROM which comes with the cards.
Well, after a few tests I found out that, when I use the C version (comes with the latest .dll) it works. It keeps switching (using the connect button)

Do I need a newer version of the delphi example source code??

Thanks a lot in advance!

Sorry, no newer version of Delphi example code is available at the moment.
You may anyhow use the latest DLL version 3.0.2 with your Delphi program.
You may use SetCurrentDevice function to ‘jump’ between the cards.

Can you explain this a little?

Yes, I’ve been on google for quite a while now and I didn’t find a newer delphi version. (C an VB were on the internet)
Both of those other languages aren’t famillar with me. (even though VB is quite the same as delphi if I may say so?)

Thanks, again, in advance!
Waiting for a reply.

Yours sincerely,
Da_Mass

I doubt your delphi version has anything to do with it…

Now you can download a Delphi demo with source from: vel255.diinoweb.com/files/K8055_ … d_Demo.zip

There is now the function SetCurrentDevice added.

You may first open all the cards and then ‘jump’ between the cards using the radio buttons.

Ok! Checking it out, thanks. I’ll let you know what worked (or what didn’t :stuck_out_tongue: )

Thanks a lot!

Works like a charm thank you!

Recoded the software, so I can directly use the outputs of the cards (using checkboxes) without the need of a radiobutton. 8)

[quote]I can directly use the outputs of the cards (using checkboxes) without the need of a radiobutton.[/quote] Indeed, this is nice idea for ‘multi-board’ access!
Thank you for your comment :slight_smile:

Works like a charm now ! Can access 2 different boards at the same time.

Also, I just coded the inputs. Those are directly visible too. (2 rows of checkboxes, as I have 2 cards)

If you are interested, I could code you a “input-output” version of code for 4 cards?
this excludes timers/trackbars etc. Just inputs and outputs.

Waiting for a reply. And again thanks! You’ve been a great help! 8)

Yes - it would be interesting to look your code.
Just the input-output code section is OK.