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
Page 1 of 1
callback from dll function?
#2
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
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
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
#3
Posted 19 March 2010 - 12:54 PM
Irene_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
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
#4
Posted 23 March 2010 - 08:38 AM
george 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
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
Share this topic:
Page 1 of 1

Help

Back to top
MultiQuote











