| View previous topic :: View next topic |
| Author |
Message |
dmonckton Contributor


Joined: 09 Aug 2002 Posts: 117 Location: Lewes, U.K.
|
Posted: Mon Feb 26, 2007 9:42 pm Post subject: Velleman K8055 USB EXPERIMENT INTERFACE BOARD |
|
|
Hi
I'm thinking of buying the Velleman K8055 USB EXPERIMENT INTERFACE BOARD to play around with. It comes with a DLL for programming languages. Here is what the blurb says
| Quote: | | All communication routines are contained in a Dynamic Link Library (DLL). You may write custom Windows (98SE, 2000, Me, XP) applications in Delphi, Visual Basic, C++ Builder or any other 32-bit Windows application development tool that supports calls to a DLL |
http://www.velleman.be/ot/en/product/view/?id=351346
Will I be abe to use the Velleman DLL with VDS??
Thanks
David... |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Feb 26, 2007 10:38 pm Post subject: |
|
|
I would say that it's likely that you will be able to use it. However, I haven't tested it
and my thoughts are based on speculation only. VDS generally supports almost all
calls to non-VDS DLL's, but in some cases it may be difficult or nearly impossible
to manage certain complex functions without a lot of work.
If you can't call the DLL from VDS directly I am entirely sure that Dragonsphere's
Gadget.dll would be able to handle the job. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
dmonckton Contributor


Joined: 09 Aug 2002 Posts: 117 Location: Lewes, U.K.
|
Posted: Tue Jun 12, 2007 2:31 pm Post subject: |
|
|
Hi all
Been very busy on other scripts so this has been on the back burner.
Finally got round to getting the DLL to work.
I've use to methods, firstly I used the @lib() function which was very
easy. Secondly I used the third party extension 'vdsug'
this needed a little more code but worked very well also.
Here is a short script to turn on all the Digital outputs(LED's) and then
turn them off again, just to show contact his been made.
| Code: | loadlib C:\Program Files\Velleman\K8055\K8055D.dll
%a = @lib(K8055D.dll,OpenDevice,INT,INT:0)
%a = @lib(K8055D.dll,SetAllDigital,NIL)
wait 5
%a = @lib(K8055D.dll,ClearAllDigital,NIL)
%a = @lib(K8055D.dll,CloseDevice,NIL)
exit
----------------------oOo------------------------
EXTERNAL @path(%0)vdsug.dll
#define function,ug
#define command,ug
UG DLLLOAD, 1, C:\Program Files\Velleman\K8055\K8055D.dll
rem General Procedures
UG DLLINITFUNC, 1, 1, OpenDevice
UG DLLINITFUNC, 1, 2, CloseDevice
rem Digital Output
UG DLLINITFUNC, 1, 3, ClearAllDigital
UG DLLINITFUNC, 1, 4, SetAllDigital
%a = @ug(DLLFUNC, OpenDevice, int, int:0)
%a = @ug(DLLFUNC, SetAllDigital, int)
wait 5
%a = @ug(DLLFUNC, ClearAllDigital, int)
%a = @ug(DLLFUNC, CloseDevice, int, int:0)
exit |
I thoughly recommend this board if you want to do remote control
or robotics. My next project is to turn the board into a low frequency
oscillator so I can plug it into my synth!
Thanks
David... |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|