LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to build vi to application(EXE) with callback ref VI(s) in it?

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

0 Kudos
Message 1 of 7
(2,822 Views)

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.

 

 

 

0 Kudos
Message 2 of 7
(2,805 Views)

hi,

I actually tried to use "always include" but doesn't work for me. I callback function seems not been called.

0 Kudos
Message 3 of 7
(2,778 Views)

Can you show your code? How do you call the VIs?

0 Kudos
Message 4 of 7
(2,775 Views)

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.

 

http://forums.ni.com/t5/LabVIEW/building-an-executable-with-vits-with-Labview-2011/m-p/2384984#M7404...

0 Kudos
Message 5 of 7
(2,773 Views)

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.

^^

0 Kudos
Message 6 of 7
(2,763 Views)

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.
====================

Wow! learn something new!
Thanks
0 Kudos
Message 7 of 7
(2,749 Views)