Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying QT Application with NI-VISA dll

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

0 Kudos
Message 1 of 3
(6,750 Views)

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 

Justin E
National Instruments R&D
0 Kudos
Message 2 of 3
(6,738 Views)

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

0 Kudos
Message 3 of 3
(6,103 Views)