Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Remedies for "A code library required by VISA could not be located . . ." error message not working.

Hello,

 

I am writing a C#.NET application that makes use of the NI-VISA 5.1.1 driver for GPIB communication.  The application installs and executes fine on my development machine.  When installed and run on a production workstation, however, the following message is returned "A code library required by VISA could not be located or loaded.  VISA error code -1073807202 (0xBFFF009E), ErrorLibraryNotFound, A code library required by VISA could not be located or loaded.  VISA error code -1073807202 (0xBFFF009E), ErrorLibraryNotFound."

 

I have reviewed the related KnowledgeBase article for this error as well as related postings in the discussion forum, but none of the proposed solutions seem to work.  I have uninstalled/reinstalled the NI-VISA 5.1.1 driver several times and verified that Visa32.dll is in the correct folder, but to no avail.

 

Given how general the error message, I'm not sure where to go with this problem and would appreciate any guidance you may be able to provide.

 

Thanks!

Chris

0 Kudos
Message 1 of 3
(4,409 Views)

I realized after posting this question that I neglected to install the GPIB drivers (i.e. NI-488.2).  Please disregard my previous post.

 

Thanks,
Chris

0 Kudos
Message 2 of 3
(4,402 Views)

Hello! I had the same problem, but the solutions presented on this forum didn't help. Here is my solution.

I checked my code with code generated by Keysight Command Expert. The problem was that I installed 2 version of VISA, one from the Keysight one from the National Instruments. I used the library from NI that is located here C:\Program Files (x86)\IVI Foundation\VISA\WinNT, but I had to use this C:\Program Files (x86)\IVI Foundation\VISA\WinNT\ktvisa.

0 Kudos
Message 3 of 3
(3,313 Views)