03-03-2010 10:35 AM
Hello,
i got a problem deploying a application written in QT4.6/C++ using the NI-VISA libraries.
If the destination machine has the NI-VISA package installed all is fine and the application runs fine.
But i wish to deploy the application with the NI-VISA dlls without installing the NI-VISA package.
I used a dependency walker to find out which dynamic libraries must be available. The result was
VISA32.DLL
NIVISV32.DLL
NISPYLOG.DLL
MSVCR90.DLL
Now when i try to run the application on a destination machine it aborts with "The application failed
to initialize properly (0xc0000142)"
The error indicates a problem loading the shared libraries.
Does anybody know a solution for this?
greetings chris
03-03-2010
02:08 PM
- last edited on
02-02-2025
04:53 PM
by
Content Cleaner
Hey Chris,
I'd suggest you install the VISA Run-Time Engine to the machine you're deploying your application to. The Run-Time engine has a much smaller footprint than the entire VISA driver, if that's what you're concerned about. You'll need either the Run-Time or the full driver on that machine to be able to use those DLLs properly. Here's a link to the VISA 4.6.2 run-time : http://joule.ni.com/nidu/cds/view/p/id/1606/lang/en
12-14-2010 01:15 PM
Hello,
I would like to use NI-VISA with Qt Creator (1.3.1)/Qt4.6.1.
I include visa.h.
My code looks like this:
ViSession defaultRM, vi;
ViStatus status;
char buf [256] = {0};
/* Open session to GPIB device at address 22 */
status = viOpenDefaultRM (&defaultRM);
But when I try to compile I get the following error:
undefined reference to `viOpenDefaultRM@4'
Could you help me get started with using visa with qt creator (mingw compiler).
Thanks,
Wilhelm