LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can't find dynamically loaded VI

Solved!
Go to solution

I'm updating a code from LV6.1 to LV2011. The application runs fine before I build it and install it on another machine. When I install and run it on the other machine, it tries to open a file by reference, but it can't find a VI named DSA8300.vi. I get the following error message.

 

Open VI Reference  in InitScope.vi->PATAR.vi-><APPEND>

VI Path:  <B> c:\PATAR3.0.2\Range_RC3\Plugins\Scopes\DSA8300.vi<\b>

 

Built Application or Shared Library (DLL):  Make sure all dynamically loaded VIs were properly included in the build specification for the application or shared library. 

 

But I checked my build properties, and the file has been properly included in the build spec as a dynamic VI. What else can I check?

 

Thanks very much.

0 Kudos
Message 1 of 8
(4,266 Views)

Check the folder dynamic vi for the file after building whether it is present. Create an indicator for the path where you call the dynamic vi and check it whether it calls the same path where the file is available after build.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 8
(4,263 Views)

I tried some things, but I'm still confused. 

 

In the Destinations section of the Build Properties, there are about a hundred subdirectories shown where the application will be stored. But when I build the app, only about five directories are created. It seems like most of the directories are missing.

 

In the "Additional Exclusions" section of the build properties, I unchecked all the boxes, so nothing would be excluded. I got the same behavior. 

 

One of the missing subdirectories is "Scopes", which would be the logical place for the missing  VI. 

 

The app builder seems to be leaving out a buch of files (or at least directories), and I can't figure out why.

0 Kudos
Message 3 of 8
(4,251 Views)

@efarr wrote:

I tried some things, but I'm still confused. 

 

In the Destinations section of the Build Properties, there are about a hundred subdirectories shown where the application will be stored. But when I build the app, only about five directories are created. It seems like most of the directories are missing. Is this the installer you are referrring to? This only shows where your application will be installed.  It does not create all those folders listed.

 

In the "Additional Exclusions" section of the build properties, I unchecked all the boxes, so nothing would be excluded. I got the same behavior. 

 

One of the missing subdirectories is "Scopes", which would be the logical place for the missing  VI. Did you create a folder called Scopes in the Installer? Is this where you expect the VI to be located?

 

The app builder seems to be leaving out a buch of files (or at least directories), and I can't figure out why.Which files and/or directories is it leaving out?


 

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 4 of 8
(4,238 Views)

Let's review. I'll try to be more clear. 

 

1. App works OK on the machine I developed it on. Ran it three ways: a) Raw VIs; b) built app. (before installation); and c) installed app. 

 

2. I installed the app on a second machine, which has no VIs and no LabVIEW. On that machine, it can't find a dynamically linked VI during a call by reference. 

 

3. On the suggestion of the P Anand, I opened Project Explorer, Build Specifications. Under that is the name of my app. I right-clicked on that to see it's properties. Under the "Destination" category I see a long list of around 100 subdirectories where the built app will be stored. 

 

4. After the app is built, I go to where the "Destination" category said my built app would be stored. I only see only five subdirectories. 

 

5. This seems strange, but I can't be sure that  this is a problem. Some data files that I would expect to be missing on this basis seem to be installed successfully on second machine.

 

6. The Scopes directory is not one that I created. LabVIEW decides where to put the files in a built app. I seem to have no control. But the missing VI did originally live in a directory named "Scopes". 

 

Thanks very much for your help.

 

0 Kudos
Message 5 of 8
(4,228 Views)
Solution
Accepted by topic author efarr

You might find this thread helpful.

 

http://forums.ni.com/t5/LabVIEW/Can-t-find-my-dynamically-loaded-VI-path/m-p/1124341/highlight/true#...

 

Have you tried searching the forum for you issue?  There are others.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 6 of 8
(4,222 Views)

Thanks very much for that tip. I had searched, but I had not found that thread. 

 

The suggestion at the bottom of the thread worked. That was, "Use Labview 8.X file Structure". I don't understand exactly what this does (apparently a flat structure instead of hierarchical), but it works on my app, because I'm updating an old LV6.1 app. 

0 Kudos
Message 7 of 8
(4,216 Views)

Glad to hear it.  Good luck!

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 8 of 8
(4,204 Views)