LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Visit our LabVIEW Wiki External Code Portal.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> callback from dll function?
jcbalding
post Sep 17 2004, 03:43 PM
Post #1


One hit wonder!


Member
Posts: 1
Joined: 17-September 04
Member No.: 698
LV:7.1


I've got a dll library that I need to interface with. One of the critical interfaces to it is the interrupt driven messaging from it. This is implemented with register and unregister calls to the dll function to let the dll invoke a callback function.

I'd like both the calling function and the callback function to be LabVIEW vis.

Can this be done in LabVIEW? What is the best way to do this?

Here is the dll's register function prototype:

void CSregisterForMessages( long csHdl, void (*func)( void* data, long length, long type ) );



Thanks,

Jeff


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Sep 17 2004, 03:43 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Irene_he
post Sep 17 2004, 08:22 PM
Post #2


Very Active
***

Premium Member
Posts: 177
Joined: 31-January 03
From: Waterloo, Canada
Member No.: 42
Using LabVIEW Since:1995
LV:7.1 ,. ,.
Nothing Selected Nothing Selected Nothing Selected My Blog


Hi Jeff,
There is no direct way to register LabVIEW vi as callback function in C, but there is a way to work around by using the LabVIEW activeX server. Here are two links to info-labview that I answered before for your references.
http://messages.info-labview.org/2003/06/20/37.html
http://messages.info-labview.org/2004/01/27/09.html

The successful case is my IVision LabVIEW toolkit, it uses this technique to make LabVIEW vi as callback vi for real time video processing. If you want to get a feel how callback vi is working, you can download my Ivision at:
http://www.hytekautomation.com/Products/IVision.html

Regards,
Irene

--------------------
HYTEK Automation (Canada)
HYTEK (Shanghai)
Twitter: http://twitter.com/Irene_he
Your resource for small budget project, hobby project
and academic project in data acquisition and
image/video acquisition field


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 2nd December 2008 - 02:56 AM