05-07-2013 03:11 AM - edited 05-07-2013 03:17 AM
hi,
I was tring to build my VI into an EXE. However, it doesn't work for the event callback ref.
To be more specific, I got vi A which is going to be build into an EXE ,and vi B and C which are called by vi A with callback ref.
I tried to include B and C in the labview project and been builded with A in many ways. None of them works.
Does anyone know how to do it?
Any response would be appreciated.
^^
Regards, C.L. Huang
05-07-2013 04:54 AM
Adding the dynamically called VIs to the project is not sufficient, you need to add them to the "Always Included" section of the build specification (on the Source Files page). This is of course if you want to include the VIs in the exe. If you want to dynamically call the VIs from disk you don't need to add them to the exe.
05-07-2013 11:12 AM
hi,
I actually tried to use "always include" but doesn't work for me. I callback function seems not been called.
05-07-2013 11:16 AM
Can you show your code? How do you call the VIs?
05-07-2013 11:19 AM
If you call a VI using a static VI reference the VI will be added as a dependency. This means you won't need to explicitly add it to the "Always Include" list. I demonstrated this in this forum post.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-07-2013 12:27 PM
hmmm....I have to apologize. I found the reason. A .NET dll was not automatically included by Labview project. After adding it manually, it works just well.
Sorry for being confusing and thank you both for trying to help.
^^
05-07-2013 02:19 PM - edited 05-07-2013 02:20 PM