LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

code library VISA could not be located or loaded.

I have to migrate some CVI program (version is CVI 4 to CVI8). But when I try to execute I have this non fatal error:

Function viOpenDefaultRM: (return value == -1073807202 [0xbfff009e]). A code library required by VISA could not be located or loaded.

I don't why my program don't located VISA library. this library appaered in my library window.
My program drive 2 gereator with GPIB (R&S)
thanks


0 Kudos
Message 1 of 9
(10,383 Views)

Hi dpastor,

Typically this error means that VISA wasn't installed properly or isn't there. Check out the VISA Error -1073807202 (0xBFFF009E) KnowledgeBase for more information. Also, the latest version of VISA is available here.

I assume that you tried taking your old CVI 4 application, moved it to a different machine with CVI 8 and tried to run your application and got this error?

If the suggestion above doesn't help, let me know but I have seen your issue behavior and it was a result of not having VISA installed or it was installed incorrectly.

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 2 of 9
(10,371 Views)
Hi Jonathan,
thanks for your help but my problem is always here.
I have unistall NI VISA and installed properly (I have intall run time 4.0 and ni-visa 4.0 because I have visa.lib 4.0 this is good?).
 
More explination : I have a CVI4 application with GPIB and Windows NT. And I need to migrate to CVI 8.1, windows XP and USB-GPIB interface.
when I do :
 
#include <visa.h>

/****************************************************************************/
/*    MAIN              */
/****************************************************************************/
int main (int argc, char *argv[])
{
    ViStatus statusOpenDefault = VI_SUCCESS;
    ViStatus statusOpen        = VI_SUCCESS;
    ViStatus statusClose       = VI_SUCCESS;
    ViSession defaultRM        = 0;
    ViSession instr            = 0;
 
 statusOpenDefault = viOpenDefaultRM (&defaultRM);
    statusOpen        = viOpen (defaultRM, "GPIB1::1::INSTR", VI_NULL, VI_NULL, &instr);
 statusClose       = viClose (instr);
 return 0;
}
An error appear for ViOpenDefaultRM, ViOpen...
 
When I Go to definition (ctrl I) : that find visa.lib 4.0
could you help me.
sorry for my bad english thanks a lot
delphine
 
0 Kudos
Message 3 of 9
(10,343 Views)
 Hi delphine,

Do you have both LabWindows/CVI 8.1 and LabWindows/CVI 4 installed on your same machine?

When you are in LabWindows/CVI 8.1, and you select the Library menu, is the VISA option greyed out or can you select it which should pull up a "Select Function Panel" dialog with classes like "Resource Template..", "Resource Management..", etc.

Can you run any of our shipping examples for Visa? These should be located in the C:\VXIpnp\WinNT\NIvisa\Examples\C\ directory.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 4 of 9
(10,336 Views)

Hi Jonathan,

I have reinstalled 3 times and I thinks that's OK

Thanks a lot for your help.

Best regards

Delphine

0 Kudos
Message 5 of 9
(10,328 Views)
Hi Delphine,

Your reply wasn't too clear if you solved your problem or not. Is everything working or what?

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 6 of 9
(10,323 Views)

Hi Jonathan

Sorry for my yesterday short message but I was so happy, after 1 week of visa lib problem...

I uninstall visa runtime and install it 4 times, and to finish it was OK. I can see it in "measurement and automanton logiciel" (before I did'nt see it). I have made lot of test and my application is good.

thanks for your help

best regards

Delphine

0 Kudos
Message 7 of 9
(10,309 Views)

Hello all :


1.- I have created a simple TestProject.prj with two files  named : myuir.c  my apps.c
and myuir.c calls ...... myapps.c (which contains all declarations var,headers,func, etc ...
                                    inside files : myapp.c or myapp.h

2.- I am using VISA to talk to an Agilent PSA box thru TCPIP (equivalent to typical GPIB calls)
and works OK no errrors (compiles OK, links ok, runs OK) .... and was developed under LabWindows rev 9.0

 

3.- I have another  MainProject.prj with multiple files (c,h,DAC,USB,fp,dlls,etc)
all of these are using NI drivers and NI hardware or LabWinodws files ....

... and is runing also OK (no errors, no problems)
and was develop on previous rev , but was re-built with REV 9.0 .....and also it is runing OK.

 

The problem occurs when I merged my files (myapps.c, myapps.h) into this MainProject.prj ..
 while it compiles and links  w/out errors (no warnings) ...I am getting a run time error like this

NON-FATAL RUN-TIME ERROR:   "e_psa_E4443A.c", line 105, col 6, thread id 0x00000E30:
  Function viOpenDefaultRM: (return value == -1073807202 [0xbfff009e]).
A code library required by VISA could not be located or loaded.


NOTE: I also downlaoded (just in case) and installed the latest VISA driver... same problem

I am trapped !!! (each project works OK) but only fails when MyApps.c funcion
is called from the MainProject  ... A run Time error

 

Jose Olvera
0 Kudos
Message 8 of 9
(9,646 Views)

The issue is closed

 

FYI (All) ...my MainProject was also using a DLLVisa ....so, after cleaning the MainProject , and using just 'one'

VISA .... the error was cleared

 

Jose

Jose Olvera
0 Kudos
Message 9 of 9
(9,626 Views)