Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

NI4882.dll Problems

Hey guys im running Visual Studio 2010 and I am having a problem with an application. My program communicates with a Delta Edge Handler threw GPIB. My application starts and runs fine but randomly it will just lock and not respond anymore. Looking at the Immediate Window I see this message 

 

"A first chance exception of type 'System.InvalidOperationException' Occurred in NationalInstruments.NI4882.dll.

It does not take me back to debug and it does not die it just freezes. I was monitoring the resources and it does not do anything funny it just plain locks up. This error is also totally random I have tried to run it a few times and sometimes it will run threw 50 units and others I can get upwards to 2000 units before it happens. It also happens to freeze on the same line every time. I have tried throwing in a try and catch but it doesn't throw any error it just stops running. Its starting to get really frustrating because it runs fine other then the random lock ups.

0 Kudos
Message 1 of 5
(3,927 Views)

Hi SchonerTod,

 

For me to understand what you are experiencing I need to ask some questions:

 

What version of the NI-488 do you have installed?

 

Can you reproduce this on more than one computer?

 

Perry S.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,916 Views)

I am currently running 2.8. Yes i can reproduce on three different computers. Two of them have very simular stats and one is a laptop with much better stats.

 

 

0 Kudos
Message 3 of 5
(3,914 Views)

Hi SchonerTod,

 

A good place to start is updating your 488.2 driver to 2.8.1 because this issue might have been addressed in the update of drivers. You mentioned there was a particular line of code that was causing your program to lock up. Can you give me a little information about what the program does and what it is trying to do when the error message is being thrown? Can you tell me a little more about your setup? Are you using any other hardware or software? Furthermore, can you take a screen shot of the error message for me?

 

Regards,

Andrew M.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,900 Views)

IDK if its the line thats locking it up or if its just at that line it seems to lock up. My program is a testing automation application. It talks with a handler threw GPIB and when the handler tells the tester that its ready with parts in place the tester will send a start test to 1-4 Hypot boxes threw RS-232 commands. The Line in question is my binout command which writes to the handler letting it know that testing is done and what bin tray to place the tested unit/s. I am not using any other software. The hardware i am running is a Delta Edge handler, associated research Hypot III boxes. I will try and get you a screen shot asap. Right now work is busy.

0 Kudos
Message 5 of 5
(3,897 Views)