2 registered members (7th_zorro, dr_panther),
724
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: interface kaart
[Re: flits]
#282489
08/01/09 13:55
08/01/09 13:55
|
Joined: Jul 2007
Posts: 959 nl
flits
OP
User
|
OP
User
Joined: Jul 2007
Posts: 959
nl
|
can somebody give my any hint on how to use it
every idea is welcome
i realy dont know how to start
if i try it like we are using anet ore newton i get a empty prototype call
flits
"empty"
|
|
|
Re: interface kaart
[Re: Rei_Ayanami]
#282495
08/01/09 14:23
08/01/09 14:23
|
Joined: Jul 2007
Posts: 959 nl
flits
OP
User
|
OP
User
Joined: Jul 2007
Posts: 959
nl
|
i am just experimenting white it
it works white the demo so the next thing to do is getting it able to make a program for testing purpose
after that i am going to add stuff to the bord like sensors and moters but first i need to know that it works white lite-c
thx flits
"empty"
|
|
|
Re: interface kaart
[Re: flits]
#282533
08/01/09 21:44
08/01/09 21:44
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
I should be able to give you a hand with this later. Ive got the Velleman K8055. But Ive never tried linking it to lite-c, Ive just never seen a use.
I do pretty well linking windows-API's into lite-c, and DLL's are not terribly different.
I'll have a look at it in the next couple of days.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: interface kaart
[Re: EvilSOB]
#282568
08/02/09 09:30
08/02/09 09:30
|
Joined: Jul 2007
Posts: 959 nl
flits
OP
User
|
OP
User
Joined: Jul 2007
Posts: 959
nl
|
oke thx
i hope that the dll isnt to different from each other
hope you can work it out
flits
"empty"
|
|
|
Re: interface kaart
[Re: flits]
#282673
08/03/09 06:19
08/03/09 06:19
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Damnit, my board a clunky ol thing compared to yours. But I got it going no problems. So heres the DLL-linking code you need to get yours going in Lite-C Let me know how it goes...
long __stdcall OpenDevice();
#define PRAGMA_API OpenDevice;k8061!OpenDevice
long __stdcall CloseDevices();
#define PRAGMA_API CloseDevices;k8061!CloseDevices
long __stdcall ReadAnalogChannel(long CardAddress,long Channel);
#define PRAGMA_API ReadAnalogChannel;k8061!ReadAnalogChannel
long __stdcall ReadAllAnalog(long CardAddress, long *Buffer);
#define PRAGMA_API ReadAllAnalog;k8061!ReadAllAnalog
long __stdcall OutputAnalogChannel(long CardAddress, long Channel, long Data);
#define PRAGMA_API OutputAnalogChannel;k8061!OutputAnalogChannel
long __stdcall OutputAllAnalog(long CardAddress, long *Buffer);
#define PRAGMA_API OutputAllAnalog;k8061!OutputAllAnalog
long __stdcall ClearAnalogChannel(long CardAddress, long Channel);
#define PRAGMA_API ClearAnalogChannel;k8061!ClearAnalogChannel
long __stdcall ClearAllAnalog(long CardAddress);
#define PRAGMA_API ClearAllAnalog;k8061!ClearAllAnalog
long __stdcall SetAnalogChannel(long CardAddress,long Channel);
#define PRAGMA_API SetAnalogChannel;k8061!SetAnalogChannel
long __stdcall SetAllAnalog(long CardAddress);
#define PRAGMA_API SetAllAnalog;k8061!SetAllAnalog
long __stdcall OutputAllDigital(long CardAddress, long Data);
#define PRAGMA_API OutputAllDigital;k8061!OutputAllDigital
long __stdcall ClearDigitalChannel(long CardAddress, long Channel);
#define PRAGMA_API ClearDigitalChannel;k8061!ClearDigitalChannel
long __stdcall ClearAllDigital(long CardAddress);
#define PRAGMA_API ClearAllDigital;k8061!ClearAllDigital
long __stdcall SetDigitalChannel(long CardAddress, long Channel);
#define PRAGMA_API SetDigitalChannel;k8061!SetDigitalChannel
long __stdcall SetAllDigital(long CardAddress);
#define PRAGMA_API SetAllDigital;k8061!SetAllDigital
long __stdcall ReadDigitalChannel(long CardAddress, long Channel);
#define PRAGMA_API ReadDigitalChannel;k8061!ReadDigitalChannel
long __stdcall ReadAllDigital(long CardAddress);
#define PRAGMA_API ReadAllDigital;k8061!ReadAllDigital
long __stdcall OutputPWM(long CardAddress, long Data);
#define PRAGMA_API OutputPWM;k8061!OutputPWM
long __stdcall PowerGood(long CardAddress);
#define PRAGMA_API PowerGood;k8061!PowerGood
long __stdcall Connected(long CardAddress);
#define PRAGMA_API Connected;k8061!Connected
long __stdcall ReadVersion(long CardAddress, long *Buffer);
#define PRAGMA_API ReadVersion;k8061!ReadVersion
Note :: It assumes your DLL to be in the project folder, and names "k8061.dll"
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: interface kaart
[Re: EvilSOB]
#282792
08/03/09 19:31
08/03/09 19:31
|
Joined: Jul 2007
Posts: 959 nl
flits
OP
User
|
OP
User
Joined: Jul 2007
Posts: 959
nl
|
thx so far its loads the dll
i didnt get it working right now
if i try it in a test rune he cant find the card (gueas because of vista)
somehow my publishing mode is somehow damged so i cant run the the exe as adminstator
is there any way how i can run my test project whiteout publishing
realy much thx for your help
flits
"empty"
|
|
|
Re: interface kaart
[Re: flits]
#282826
08/04/09 02:16
08/04/09 02:16
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
I cant help out with Vista, I dont have it. I was testing in XP with no problems,and I was only using test-run, I wasnt publishing at all...
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: interface kaart
[Re: EvilSOB]
#282957
08/04/09 20:27
08/04/09 20:27
|
Joined: Jul 2007
Posts: 959 nl
flits
OP
User
|
OP
User
Joined: Jul 2007
Posts: 959
nl
|
yeah it works
the stupid problem was that i did use the wrong dll first i picked the one out of the updated vista pack now i use the one included on the cd
thx to vista i needed to run the acnex.exe unter adminstrator
so no need to publishig but that does work now to
thx for helping me out
"empty"
|
|
|
|