LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot include dynamically called subVIs in build

Solved!
Go to solution

Hi, I have  a VI that calls some subVI dynamcally - that is by reference.

I am now trying to build an application and loking at this instructions from Help (I am using LabView 2012):

 

Capture2.PNG

 

This link http://digital.ni.com/public.nsf/allkb/410F2EC66F60F9B0862569EE006F4FA0 has similar instructions:

 

Capture2.PNG

 

 

However, my problem is that I cannot click any arrows in the window. This window for me looks like this:

 

Capture.PNG

 

 

and none of the arrows are clickable and of any help in adding the dynamic subVIs!  As a result, when the application builds, it does not run correctly.

 

Would appreciate any help you can supply as to how to address the issue.

 

Thanks in advance!

0 Kudos
Message 1 of 6
(2,953 Views)
Solution
Accepted by SenSLabs

Hi SensLab,

 

when you would use a LV project then you would be able to include all VIs needed in the build!

 

Btw. dynamically called VIs should be included in the project too...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(2,943 Views)

One additional sidenote to Gerd's answer:

You cannot "distribute" components from the "Dependencies" section using this method.

The only way, as Gerd points out, is to manage the sources explicit within the project.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 3 of 6
(2,937 Views)

Thanks, guys, I think I figured it out now 🙂

0 Kudos
Message 4 of 6
(2,908 Views)

I have a similar issue with a test program for a Rohde & Schwarz ZNB vector network analyzer. I had an issue with dynamically loaded callack calls by the driver that were recognized when running in development mode and ran fine. When compiled it gave a hard error with the callback vi's. R&S recommended including the driver in the project "alway include" section. Even though this driver had no DLL components (it does have a *.lvlib file and the project files with the driver vi's. In this project case I always include the drivers into the project, makes there project inclusion in your face as part of the project. To run the exe properly compiled and not get an error, I had to include the whole driver into the "always include" no single component (e.g. the *.lvlib file) would not fix the problem. Just a thought on my experience with dynamic loaded modules at compiled run time. By the way R&S did not document what HAD to be included for the exe to run proper. I had to tell them they need to improve their documentation.

0 Kudos
Message 5 of 6
(2,901 Views)

The reason that you have to include the whole *.lvlib into the project build script is because the VIs require the lvlib file to be executable.

The VI itself knows which library it is connected to, so loading the VI loads the lvlib-file as well.


By doing so, LV can provide namespacing and access scopes for library items.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 6
(2,880 Views)