Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

AxGPIB runs slower over time

Using Measurement Studio 6.0 for VB but from within a Visual Studio 2005 CSharp app, the components used are the AxCWGPIB ? that interface to the GPIB bus
 
everything works except over time, like 1 hour, it becomes noticeably slower, after 10 hours the cpu useage is peaked around 100%, each transfer takes a few seconds.  Am searching for any issues with this activeX, any leads appreciated.
 
rebooting the system makes it run faster, problem seems linked to the GPIB interface/driver which is the National Instruments/Measurement studio component that appears as AxCWGPIB
 
thanks for any assistance
0 Kudos
Message 1 of 4
(7,217 Views)
Hi,
Often this type of problem is caused by a memory leak in your code.
Does your code perform any data logging?
 
If so, I would recommend temporarily removing the data logging part from your code and seeing if that resolves the issue.


Regards,
John E.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(7,198 Views)

yes thanks, I disabled the data logging and ran the tests that only did the gpib I/O.  doing this, it would increase in cpu useage much faster than if everything gets run.  Ive scoured the code for possible memory leaks

 

Is there supposed to be some special way to call and manage the Interop.CWInstrumentControlLibrary.dll  or ?? from the C# form world?

 

the documentation is extremely limited, but I put the control into the form1, then make calls from the code.  nothing to indicate that more is necessary, so what else is supposed to be done? 

is there a difference between the cwgpib control in the dotnet version of Measurement Studio? or is it the same exact v1.4  for version 6.0?

0 Kudos
Message 3 of 4
(7,141 Views)
Sounds good, it sounds like we are narrowing down the issue.  I would recommend that you take a look at the example:
C:\Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Examples\Gpib\SimpleReadWrite\cs

You can then use that code as a model for modifying yours to remove any potential memory leaks.

Have a great Holiday!

John E.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(7,121 Views)