Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

(0xBFFF009E), ErrorLibraryNotFound

I am trying to program my GPIB instruments with NI VISA commands in C#.  I am getting an exception when executing the following line of code:

 

mbSession = (MessageBasedSession)ResourceManager.GetLocalManager().Open("GPIB0::" + "1" + "::INSTR");

 

A code library required by VISA could not be located or loaded.  VISA error code -1073807202 (0xBFFF009E), ErrorLibraryNotFound

 

I uninstalled and installed VISA a couple of times as suggested in the forum.  I verified that visa32.dll is properly placed.  I also uninstalled and installed my C# Express.  In the details of the exception there is mention of the following:

 

{Name = "ErrorChecker" FullName = "NationalInstruments.VisaNS.Internal.ErrorChecker"}

 

{System.Collections.ListDictionaryInternal.NodeKeyValueCollection}

 

It is not clear to me which or if either of these is the offender.

 

When I used the VISA interactive utility it returns my USB controller (GPIB-USB-B) information but nothing from my attached instruments.  When a colleague’s computer was used with the same hardware the utility sees all the instruments.  Attached is an Excel file that contains window captures of the exception, interactive & my install.

 

Any help would be greatly appreciated!

0 Kudos
Message 1 of 7
(5,199 Views)

SW_gpib,

 

It sounds like the NI-VISA driver may not be specified as the primary VISA driver. Have you used other VISA drivers prior to this? Have you been able to successfully use NI-VISA on this same computer before this time? If not, it might be worth trying to run one of the VISA C# examples that comes with the VISA drivers just to confirm the problem in another program.

 

It would also be worth checking to see if the NI-VISA drivers are the primary VISA drivers for your computer. Navigate to the visa32.dll, right click the file and select properties. In the Details tab, if the File Description says "NI-Visa Library," the NI-VISA drivers should be set as the primary drivers. If not, try repairing the NI-VISA Runtime engine.

 

To do this, first rename the visa32.dll to something different (like "visa32OLD.dll"). Then, open the Programs and Features from the control panel. Select National Instruments Software and then select to repair the NI-VISA Runtime x.x.x. Restart your computer and see if that does the trick.

 

Chris G

Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(5,184 Views)

Hi Chris,

Thanks for your ideas.  It turns out that my problem was not with VISA it was with the 488 driver.  It was either not installed correctly or not installed at all and I was using a driver from Microsoft.  Interactive was showing my GPIB-USB-B so I assumed that the driver was OK.  After installing the 488 driver (again?) I am now communication with my instruments.

 

Thanks,

 

Steve

0 Kudos
Message 3 of 7
(5,175 Views)

Hello Sir!

I was reading you thread, your little concentration can be very useful for me,

 

Sir I am interfacing GPS (GR-89 Holux) module with Lab View 8.5 serialy by VISA.. protocol is 4800baud, 8data bits, none parity, 1 stop bit.

 

But when I run the Lab VIEW it gives error like ""Error-1073807253 occured at VISA read" and also shows "possible reason : VISA (Hex0xBFFF006B) a framing error occurwed during transfer".

but even I set the correct frame that is 8 bit frame.

can you guide me that how to fix this problem???

 

Thanks in advance. 

0 Kudos
Message 4 of 7
(5,162 Views)
Your question has absolutely nothing to do with this thread. You need to start a new one.
0 Kudos
Message 5 of 7
(5,157 Views)

To Mr.

 

Respective Sir! I am sorry that I can not understand clearly what you said. Did you mean that My problem has no solution or my question is not valid or wrong question????

0 Kudos
Message 6 of 7
(5,138 Views)

Dennis' comment is fairly straightforward. If your issue is not similar to a particular thread then we request that you not post on that thread. Just create a new one by clicking the New Message button that is located at the top of the Instrument Control forum page (http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/bd-p/140). If these forums are to help future engineers then you must help us by keeping unrelated issues on their own pages.

 

Lars L

0 Kudos
Message 7 of 7
(5,118 Views)