It is currently Sun Jul 31, 2016 9:30 am

All times are UTC




Post new topic Reply to topic  [ 111 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8

I'd like programming examples for the K8090 in
Microsoft Visual Basic 2008 Express Edition 36%  36%  [ 28 ]
Microsoft C# 2008 Express Edition 10%  10%  [ 8 ]
Microsoft Visual C++ 2008 Express Edition 8%  8%  [ 6 ]
Microsoft Visual Basic 6 8%  8%  [ 6 ]
Small Basic 0%  0%  [ 0 ]
Delphi 10%  10%  [ 8 ]
Dev C++ 0%  0%  [ 0 ]
Borland C++ Builder 1%  1%  [ 1 ]
Other (post your own choice) 26%  26%  [ 20 ]
Total votes : 77
Author Message
PostPosted: Sun Feb 23, 2014 4:14 pm 
Offline
Member
Member

Joined: Sat Feb 15, 2014 1:30 pm
Posts: 2
I have been playing with the board for a week now. My programming language is Liberty BASIC which can create GUI style interfaces with relative ease. This is where I have got to, it's just a bit more functional than the demo but its just a start. The button modes can be changed, the timers set and started. I have in mind a sequencer. Anyways this is what I have if you like to try you can download the .zip folder. There is no install, simply run the .exe in the folder and delete the folder when your done. It uses the serial com port to talk to the board.

The interface:Image


The download:http://webzoom.freewebs.com/gamebin/Velleman/LibertyBASICk8090.zip


The Liberty BASIC forum if you wish to discuss the code:http://libertybasic.conforums.com/index.cgi?board=comport&action=display&num=1392211432&start=0


Top
 Profile  
 
PostPosted: Sat Mar 29, 2014 11:13 am 
Offline
Member
Member

Joined: Sat Mar 29, 2014 10:59 am
Posts: 1
Hi,
I need to create a program using the K8090 in C,
and I'd like to know the status of a relay.

For example, on the relay 1, I've a lamp and I'd like to know if it is already on or not.
I tried with :
Code:
SendCommand(hDevice,CMD_QUERY_RELAY_STATUS, LAMPE, PARAM_NONE, PARAM_NONE);

But I found out that the BOOL returned by that function is not the relay status, but just indicate that the command worked or not.

EDIT : And I've just seen that the third param is useless too for that command

So how can I get the relay status (with an example if possible)?

Sorry if my english is not perfect.

Thank you in advance.


Top
 Profile  
 
PostPosted: Mon Mar 31, 2014 8:18 am 
Offline
User avatar
Velleman Support
Velleman Support

Joined: Wed Dec 06, 2006 12:49 pm
Posts: 1890
Location: Belgium
If you're using C you probably don't need the dll, it's easier just to read from or write to the COM port. The dll will only work in a windowed application, not a console application.


Top
 Profile  
 
PostPosted: Sun Oct 19, 2014 5:59 pm 
Offline
Member
Member

Joined: Sun Oct 19, 2014 5:52 pm
Posts: 1
Hi,
I need to create a program using the K8090 in Labview,
but I have no experience to create a dll to control the relay-card via Labview.

Can anyone help me?

Thx a lot!


Top
 Profile  
 
PostPosted: Fri Oct 24, 2014 7:19 am 
Offline
Member
Member

Joined: Fri Oct 24, 2014 7:12 am
Posts: 1
hi

I have the same problem like Karsten. i use the VM8090 and I need to controll it with Labview.
I tried to inculde the dll in Labview but nothing is working. :(

If someone could help us would be great :)


Top
 Profile  
 
PostPosted: Fri Oct 24, 2014 9:32 am 
Offline
User avatar
Velleman Support
Velleman Support

Joined: Fri Dec 08, 2006 8:07 am
Posts: 7733
Location: Belgium
Sorry, we do not have any experience with Labview at this time.
Maybe a forum member can assist?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 111 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group