LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Spherical Bessel Function jn.vi" not found in built app

"Spherical Bessel Function jn.vi" was not found when loading a built app that uses it as a subVI.
The app build was fine (no errors or warnings), so there's nothing suspicious there.
 
This function is in:
C:\Program Files\National Instruments\LabVIEW 7.1\vi.lib\gmath\SpecialFunctions.llb\Spherical Bessel Function jn.vi
 
I had no such problems with my VI or calling the above VI using LV6.1.
 
(Making a copy of the above VI in my dev directory (user/My Documents/VIs/...) & referencing that instead didn't help either.)
 
0 Kudos
Message 1 of 27
(4,614 Views)

Mattl hello.

Sorry to hear you are not able to run an application when you build it using that particular VI. I have built and run two different applications (one using LabVIEW 7.1 and another using LabVIEW 8.0) and have not been able to replicate the problem.

Are you able to build and run a VI with just that subVI in the application? Please let me know as I continue investigating this issue.

Efosa O.
NIAE

0 Kudos
Message 2 of 27
(4,592 Views)
Hi.  I've taken my VI, saved it as an LLB, & attached it.  It's a very simple VI, so shouldn't be a problem for you to look at.
 
I built an executable using the same VI, and also attached it (as Bessel_func.txt, please rename to Bessel_func.exe).
 
I've noticed that on my development PC, that there's no problem opening/running Bessel_func.exe.
I have LV 6.1, 7.0, 7.1 & 8.0.1 on this PC, however (along w/ a lot of other NI s/w)!
 
Similarly, I have another PC that has LV6.1, LV7 runtime engine+eval version+player on it, and Bessel_func.exe also works on it.
 
Note: I've confirmed that Bessel_func.exe still doesn't work on a "clean" system (only LV7.1 & 6.1 runtime engines installed).
 
Can you please confirm on your end using a PC that doesn't have anything but the LV7.1 runtime engine on it?
 
 
0 Kudos
Message 3 of 27
(4,582 Views)
A guess- did you include the Advanced Analysis Library as part of the build?
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 4 of 27
(4,579 Views)
Sorry, I don't see this as an option anywhere in the App Builder.
 
I checked the Installer tab as well, including "Advanced", and saw NI Reports, etc., but not Advanced Analysis Library.
 
(Note: I'm figuring that "Analyze VIs Support"  is just to analyze VIs.  Am I mistaken?)
0 Kudos
Message 5 of 27
(4,573 Views)
Did you create an installer for your app? If you had, it would have included lvanalys.dll as a support file. I think this is all that is missing.
0 Kudos
Message 6 of 27
(4,565 Views)
I also suspected that, but I don't think that's it either.
 
There's 4 reasons why:
1. On my development system, on which Bessel_funcs.exe works, I renamed lvanlys.dll in each of the locations where it exists on my computer; namely:
1. the location of the top-level VI (i.e., same dir as Bessel_funcs.exe)
2. C:\Program Files\National Instruments\LabVIEW 6.0\resource
3. C:\Program Files\National Instruments\LabVIEW 7.0\resource
4. C:\Program Files\National Instruments\LabVIEW 7.1\resource
5. C:\Program Files\National Instruments\LabVIEW 8.0\resource
In all cases, my program still works, and there's no "searching for..." stuff going on at any time.
 
2. On my "clean" target system which has the problem, the search path includes the top-level VI directory, which already has lvanlys.dll.
 
3. A problem with a missing dll is in my experience handled appropriately; with decent messaging, that is, stating that such-and-such.dll cannot be found.  This is not that sort of error message.
 
4. I built an app w/ the installer & even included the support file lvanlys.dll in the installer files to be added.  When I ran it, it still had the same error.
0 Kudos
Message 7 of 27
(4,561 Views)

I even changed the "Call Library Function" in my own copy of "Spherical Bessel Function" to point to C:\Temp\lvsa\executables\lvanlys.dll

I copied lvanlys.dll to that directory, and which has lvanlys.dll on both my dev machine & the machine I'm having trouble on.

Still didn't work!

Again, why would this work for years w/out any effort on my part in LV6.1, and be SO dead in LV7.1???

I am really at a loss here....

0 Kudos
Message 8 of 27
(4,556 Views)

Mattl sorry for the frustrations, but are you able to use similar VIs in built applications?

I am not exactly sure why you are not able to run the built application with that VI, but if you cannot run other VIs in the same palette, that might shed a little light on the issue.

Again I know this is frustrating especially if it has worked and should work seamlessly.

Keep us posted.

Efosa O.
NIAE

0 Kudos
Message 9 of 27
(4,553 Views)
I've been using absolutely mammoth VIs in built apps for many years in LV6.1 (ever since it came out).  Many of these call various DLLs, including lvdaq.dll, lvjpeg.dll, lvpng.dll, pport driver.dll (maybe not NI), lvsound.dll, & lvanlys.dll.  I've never had an issue that wasn't obviously my fault, obvious as to why & easy to fix.
 
This seems really different.
 
Just to add to things I've tried, I also placed the LV "Spherical Bessel Function jn" function from the palette onto a new (blank) VI while my own copy was opened, and LV told me that lvanlys.dll was found in the new location (C:\Temp\lvsa\executables) & was thus being used (without errors).  (I opened Configure... & confirmed that, too.)  So, there's a big disconnect b/w the development & runtime behavior.  The dev system behavior works just fine.
 
Even just building the copy of the "Spherical Bessel Function jn" function didn't work.
 
Anything you can do to try running your own built app on a "clean" PC (i.e., one with no development libraries) would be much appreciated.
 
0 Kudos
Message 10 of 27
(4,550 Views)