05-24-2007 09:04 AM
06-28-2007 08:36 AM
Greetings Roberto,
Thanks for attaching the two VIs to your post. I'm interested in knowing which version of LabVIEW you are using? I have tested the same two VIs in LabVIEW 8.2.1 and was not able to reproduce the behavior. Creating the two dlls with a stdcall (WINAPI) calling convention returned a function prototype of 'double Sum2(double numeric, double numeric2);'
Please let me know if you have any further questions!
Regards,
06-29-2007 01:52 AM
Thank you Jordan, I'm using Labview 7.1.
Anyway I've resolved the problem by adding the "lvanlys.dll" file (present in "..\Labview 7.1\resource\lvanlys.dll" path) as support file in the building process. Now the DLL containing the analysis functions works correctly.
Natalino Roberto
06-29-2007 03:35 AM
Ok, you probably got lucky since the lvanlys.dll seems to implement that function directly. However most Advanced Analysis functions are just redirected by lvanlys.dll to the Intel Math Kerneal Library that gets installed with LabVIEW 7.1 and higher. The only way to get that properly installed with your LabVIEW executable or DLL is to create a LabVIEW installer in your Application Builder and make sure to select under "Installer Settings->Advanced" the "LabVIEW Run-Time Engine" and the "Analyze VIs Support". Then use that installer to install your DLL on another computer.
@Roberto N. wrote:
Thank you Jordan, I'm using Labview 7.1.
Anyway I've resolved the problem by adding the "lvanlys.dll" file (present in "..\Labview 7.1\resource\lvanlys.dll" path) as support file in the building process. Now the DLL containing the analysis functions works correctly.
Natalino Roberto
06-29-2007 07:21 AM
07-10-2007 07:12 AM
07-10-2007 11:17 AM
@Roberto N. wrote:
Thanks for your answers, I'm sorry but I couldn't reply before.I've made an attempt by creating the installer with the suggested advanced properties and installing the DLL into another PC, but with no changes, so at the moment the only solution with LV 7.1 seems to be the inclusion of "lvanlys.dll" file.Maybe with higher LV versions that can be resolved through project management.Regards.N. Roberto
The lvanlys.dll is required in your project distribution when using Advanced analysis VIs and should be added automatically by the LabVIEW Application Builder. But most Advanced Analysis functions won't work without the Math Kernel Library (MKL) installed too and not just any MKL but the one that comes with LabVIEW.
Rolf Kalbermatter
06-15-2010 09:38 AM
Hello,
it´s an old thread, but I face with the same problem, and it took 2 days to clear...
In one of the subVIs, which should be compiled to a dll, I called simply the "Mean.vi", which uses lvanlys.dll. All the functions of the dll work, except one, where I expect an array as an output. If I delete the Mean.vi, and calculate the average with simple G functions, it works!
So thanks for the answers, rolf.
Mitulatbati