jcbalding Posted September 17, 2004 Report Share Posted September 17, 2004 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 Quote Link to comment
Irene_he Posted September 17, 2004 Report Share Posted September 17, 2004 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 Quote Link to comment
george seifert Posted March 19, 2010 Report Share Posted March 19, 2010 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 Quote Link to comment
Rolf Kalbermatter Posted March 23, 2010 Report Share Posted March 23, 2010 (edited) 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.magnet.fsu.edu/infolabview/adv_search.html and do an Info-Labview search there. Edited March 23, 2010 by rolfk Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.