LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

unresolved external symbol _LinearFitEx@44 referenced in function

I get this error when building in VS 2010 as a converted CVI project.

 

It builds without errors in CVI using LabWindows/CVI project.

0 Kudos
Message 1 of 7
(4,004 Views)

LinearFitEx is a function from the Advanced Analysis library. As far as I know you have to buy/install Measurement Studio to make this library available for VS.

0 Kudos
Message 2 of 7
(3,997 Views)

You don't need Measurement Studio, but the analysis libraries have to be included in the project, one way or another. In modern versions of CVI they (analysis.lib, regenlys.lib) can be found in:

 

%ALLUSERSPROFILE%\National Instruments\CVI<version>\extlib\msvc (32-bit version) or

%ALLUSERSPROFILE%\National Instruments\CVI<version>\extlib\msvc64 (64-bit version)

--
Martin
Certified CVI Developer
0 Kudos
Message 3 of 7
(3,991 Views)

Thanks for the help

 

The VS project does include reganlys.lib but not analysis.lib.

 

Also only reganlys.lib is in the path specified below.

 

I don't think it is an installation issue since it builds as a labwindows/cvi project.

0 Kudos
Message 4 of 7
(3,982 Views)

So have you tried including analysis.lib, as I suggested?

--
Martin
Certified CVI Developer
0 Kudos
Message 5 of 7
(3,953 Views)

I don't have analysis.lib only reganlys.lib

0 Kudos
Message 6 of 7
(3,944 Views)

@toma908 wrote:

It builds without errors in CVI using LabWindows/CVI project.


There is one thing I do not understand, how can you use a function from the Advanced Analysis Library without having the Advanced Analysis Library?

0 Kudos
Message 7 of 7
(3,937 Views)