LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Loading dataacq.lib and easyio.lib?

I get the following error when I launch LabWindows 6.0:
Aborted load of library ...\bin\dataacq.lib
the file format of ...\bin\dataacq.lib does
not match that used by the current compatibility mode.
I get the same message for ...\bin\easyio.lib library.
Your help suggested reinstalling traditional NIDAQ drivers. I tried reinstalling everything 
and I still get the same errors.
Any ideas?
Thanks,
Shaun
0 Kudos
Message 1 of 9
(4,447 Views)

Shaun,

The daq installer detects the current compatibility mode and then installs the apropriate driver.  If you reinstalled everything, it may be that you uninstalled CVI, then reinstalled CVI and DAQ with the default compatibility mode, and then switched your compatibility mode, thereby ending up with the wrong files.  Leave CVI installed, and try just reinstalling DAQ. 

On a side note, is the compatibility mode important for your application?  Most people don't need to worry about it except when calling external code.  If you don't need a certain compatibility mode you can always just switch the compatibility mode to the one that you have the correct files installed for.

Hope that helps,

Ryan K.

0 Kudos
Message 2 of 9
(4,443 Views)

Ryan,

When I reinstalled CVI, I had to chose the Borland compatibility mode, because it said I do not have Visual C++ installed. After installing CVI, I did not change the compatibility mode. Also, I tried just reinstalling the NIDAQ 6.9.3 drivers software, but I still get the same error.

Any more suggestions?

Shaun 

0 Kudos
Message 3 of 9
(4,428 Views)
 
You shouldn't have to have Visual C++ installed to use the compatibility mode (all my CVI installs run in VC++ compatibility mode, and I only have Visual Studio on one machine).  Go to Options->Build Options and try setting your compatibility mode to VC++.  If you can't use VC++ compatibility mode or that doesn't work, you might try upgrading to a more recent DAQ driver.  I think the latest version of Traditional DAQ is 7.4.
 
Of course, you could also upgrade to DAQmx, but I'm assuming you have legacy code if you're still installing traditional.
 
Regards,
Ryan K.
0 Kudos
Message 4 of 9
(4,420 Views)
I forgot to mention that the computer I'm using has windows 98 and not XP. The latest drivers are not compatible with 98. Also, it won't let me change the compatibility mode to VC++. Is it a lost cause to try to get this to work with Windows 98?
 
Thanks,
 
Shaun
0 Kudos
Message 5 of 9
(4,413 Views)
Shaun,
 
98 vs. XP drivers shouldn't have any effect on the compatibility mode. You can still change the compatibility mode.
 
The reason it doesn't let you switch to VC++ compatibility mode in the Build Options dialog is because you are using CVI 6.0. Prior to CVI 7.0, the compatibility mode was an install-time decision.
 
You have two choices: either re-run the CVI installer, which should prompt you for which compatibility mode you wish, at which point you can chose VC++, or you can rerun the DAQ installer, which should replace the VC DAQ files with Borland files.
 
Luis
NI
 
0 Kudos
Message 6 of 9
(4,407 Views)

(This is Heidi - electronics tech for the ME dept.):

We have tried installing CVI 6.0 with both compatibility modes. Actually, during the install, it would only go so far after we chose Visual C++ before giving an error message (regarding not having the program installed) and aborting the install. We tried the Borland mode from that point, and got the error when we tried to run the program. We did a full uninstall (NI-DAQ drivers too - v. 6.9.3), and reinstalled. Same error. We uninstalled, manually deleted the National Instruments folder (Program Files) in case a .dll artifact was causing the error, then reinstalled fully.

As for other machines not requiring Visual Studio, if they are running WinXP that is probably a factor. Our pc is running Win98.

Is there possibly a registry entry persisting from the first, aborted install (or something similar)? Is there anything you can suggest that we have NOT already tried?

Heidi M.

 

0 Kudos
Message 7 of 9
(4,401 Views)

Hello, Heidi

If the 6.0 installer is not letting you proceed because you do not have Visual Studio installed, I suspect that that is because you are trying to install the "Measurement Studio for Visual C++" feature. That feature does require Visual Studio to be installed, and that is probably the reason why you are seeing the error message. Run the installer again, make sure that only "LabWindows/CVI" is checked in the feature tree and then try again.

Luis

Message 8 of 9
(4,384 Views)

Luis,

That fixed the problem.

Thanks for your help,

Shaun

0 Kudos
Message 9 of 9
(4,372 Views)