Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 50202

Solved!
Go to solution
I am using a VB program and NIDAQmx (8.5 and NI 6218) for data acquisition.  After collecting about 60,000 data points program crashes with Error 50202 "Expalnation could not be found for the requested stuas code.  Verify that requested status code is correct."  I noticed that page file is completely used up indicating a memory leak.  I do not have a memory leak in the VB section of the program and I write the data to the HD every 16,000 points and clear up all buffers. The computer is Dell P4 and does not have the motherboard or the BIOS version mentioned in another thread.  Any thoughts?
0 Kudos
Message 1 of 3
(4,169 Views)
Solution
Accepted by topic author Palitha J

Hi Palitha,

 

Thanks for posting.  There are a few suggestions that I have that may fix the problem: 

 

  • Are you initiating a DAQmx task inside a loop?  If you are not clearing the task at the end, this can cause the memory leak.  Each call would allocate more memory without clearing the previous task.  If this is the case, you need to make sure to clear each task that you create in your code.  More information can be found here.

  • It would be a good idea to upgrade your version of DAQmx to 8.7.2 to see if this resolves the problem.  We have had issues in the past similar to this (on different motherboards) with DAQmx 8.5 and earlier.  More information here.

  • Certain versions of .dlls called by the DAQmx .NET API can create this behavior.  Refer to this KnowledgeBase to see if this applies to you, there is a patch linked in the article that will fix the problem if this is the cause.


Let me know if these suggestions do not resolve the issue.  Are you able to run the DAQmx shipping examples?

 

-John

John Passiak
0 Kudos
Message 2 of 3
(4,145 Views)

Hi John,

Thanks.  The tasks were created and cleared in the loop. However, after installing the new version, program seems to be running OK. 

Palitha 

0 Kudos
Message 3 of 3
(4,108 Views)