LAVA: callback from dll function? - LAVA

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

callback from dll function? Rate Topic: -----

#1 User is offline   jcbalding 

  • One hit wonder!
  • Group: Members
  • Posts: 1
  • Joined: 17-September 04

Posted 17 September 2004 - 04:43 PM

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
0

#2 User is offline   Irene_he 

  • Very Active
  • Group: Premium Member
  • Posts: 220
  • Joined: 31-January 03
  • Location:Ontario, Canada
  • Version:LabVIEW 7.1
  • Since:1995

Posted 17 September 2004 - 09:21 PM

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...3/06/20/37.html
http://messages.info...4/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.hytekauto...ts/IVision.html

Regards,
Irene
Irene He
Stop asking why, it is silly cause not everything has an answer. It only takes so long to realize, dumb:-)
Remote control my USB DAQ right from your web browser now!
www.hytekautomation.ca , Visit HYTEK online store
0

#3 User is offline   george seifert 

  • Extremely Active
  • PipPipPipPip
  • Group: Members
  • Posts: 349
  • Joined: 19-August 05

Posted 19 March 2010 - 12:54 PM

View PostIrene_he, on 17 September 2004 - 04:21 PM, said:

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...3/06/20/37.html
http://messages.info...4/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.hytekauto...ts/IVision.html

Regards,
Irene


Irene's links no longer work. How can I get to them? It looks like information I could really use.

George
0

#4 User is offline   rolfk 

  • LabVIEW Aficionado
  • Group: Premium Member
  • Posts: 1,511
  • Joined: 09-April 04
  • Location:Netherlands
  • Version:LabVIEW 8.6
  • Since:1992

Posted 23 March 2010 - 08:38 AM

View Postgeorge seifert, on 19 March 2010 - 12:54 PM, said:

Irene's links no longer work. How can I get to them? It looks like information I could really use.

George


Take the link and convert it to the new location:

http://messages.info-labview.org/2003/06/20/37.html

gets:

http://sthmac.magnet...iew/ILVDigests/2003/06/20/Info-LabVIEW_Digest_2003-06-20_037.html


You can also go to http://hannahsmac.ma...adv_search.html and do an Info-Labview search there.

This post has been edited by rolfk: 23 March 2010 - 08:46 AM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic