LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Get error -5093 with CVI 9.1

Solved!
Go to solution

I'm getting -5093 returned from Bw_CascadeCoef. I have the analysis lib in C:\Program Files\National Instruments\Shared\Analysis\nianlys.dll from when I installed the runtime environment. What else could I be missing?

 

Nathan 

0 Kudos
Message 1 of 10
(5,912 Views)
Hm, in my CVI help the advanced analysis error codes start with -20xxx, there is no -5093. Either I have been searching in the wrong place or the error you receive is not from the call to Bw_CascadeCoef.
0 Kudos
Message 2 of 10
(5,905 Views)

It's in analysis.h, line 175.

 

 

LibraryNotFoundAnlysErr = -5093, // The analysis library was not found.

 

 and it's returned from this call:

 

 

err = Bw_CascadeCoef (sampling_rate, lower_cutoff_frequency, upper_cutoff_frequency, filter_information[i]);

 

 You're right that it's not (that I could find) in the docs.

 

 

0 Kudos
Message 3 of 10
(5,884 Views)

so i have only trivial suggestions:

- do you have the advanced analysis library, or the base package only?

- I guess your 'Program  Files' path with two spaces is a typo?

- in your customize library menu, the 'analysis' library is checked?

- in your C program, you have a statement #include <analysis.h>

 

Message Edited by Wolfgang on 04-13-2010 05:12 PM
0 Kudos
Message 4 of 10
(5,880 Views)

I should mention that I'm building this in Visual Studio 2008, so there isn't a customize library menu, but yes, I have 

 

 

#include <analysis.h>

 

Seems like a problem with the environment on the machine. It runs fine on my development box, but on the production unit I get the -5093 "analysis library was not found" error.

 

 

0 Kudos
Message 5 of 10
(5,874 Views)
Solution
Accepted by Mojo Hand
Solved. I reinstalled using the install package VS2008 built and then it could find the libraries. Don't know why installing the environment runtime didn't work. 
0 Kudos
Message 6 of 10
(5,868 Views)

How did you install the analysis dll in your production unit? Did you create a distribution installer in CVI or did you just copy the DLL to that location?

 

Check to see that you have the following registry value:

 

HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\Common\Installer - NISHAREDDIR

 

...and that its value is C:\Program Files\National Instruments\Shared\

 

Also, are you building a 32-bit or a 64-bit process?

 

Luis

 

 

 

0 Kudos
Message 7 of 10
(5,866 Views)

Hi Luis,

 

what about filing a CAR for completing the documentation on all possible library errors?

0 Kudos
Message 8 of 10
(5,797 Views)

Hi Wolfgang,

 

We'll go ahead and add the missing error codes to the analysis errors help topic.

 

As you can probably tell from the different numeric ranges, that error does not originate within the advanced analysis library, as the others do. This is why it is not showing up in this help topic (which is automatically generated from the library itself). It is because the help topic does not include all the error codes returned by these functions that the help for the return values refers users to analysis.h, which does include all the error codes.

 

In any case, we'll make an effort to generate the help topic so as to include the additional error codes.

 

By the way,  I did create a CAR last week for the InstallPanelCallback documentation problem. It's #222636.

 

Luis

Message 9 of 10
(5,765 Views)

Hi Luis,

 

these are very good news 🙂 Thanks!

 

Wolfgang

0 Kudos
Message 10 of 10
(5,753 Views)