This content is not available in your preferred language.
The content is shown in another available language. Your browser may include features that can help translate the text.
In LabVIEW, I have a VI that dynamically calls two VIs, one of them contains the mean subVI, and the other contains custom code that calculates the same mean.When using the custom VI, everything works fine both in development mode and as executable. When using the VI that contains the mean subVI, it works fine in development mode but gives a broken arrow with the below message when using an executable.
This broken run is due to the library in use not being loaded in the executable, even when included within the executable. Since the VIs or subVIs in the main VI that the executable was built from does not contain any of the subVIs from the library, it is therefore not loaded.To circumvent this, it is suggested to avoid calling such VIs dynamically and instead use them as subVIs made into a library which can be added to the installer and executable.However, if there is no other option and the VIs need to be called dynamically, then the following will resolve this error:
Build the executable. Run it.
For example, if you want to use the Mean (DBL) VI, the added code should look like this:where the False case is empty.Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.This forces the main VI to load the necessary functions and subVIs from the libraries, which can then be used when the VI that needs them is called dynamically.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.