Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Exception occured within the external code called by a Call Library Function Node with DAQmx Start Task.vi

I have recieved the error that is shown in the attached document.  Can anyone give me a hint as to what I may need to do to fix this?  It occurs at the same point during the software run every time.  The code is also attached.  The error occurs in the DAQmx Start Task.vi.  the error occurs when the counter reaches approximately 6000 (3000 on the front panel).  I am unsure if this is just a coincidence or actually is linked to the problem.  I appreciate any help that you may be able to provide.
Download All
0 Kudos
Message 1 of 3
(3,276 Views)
 

Hello JCFryman,

We need to try to isolate the issue.  Please answer the following questions:

1.  Did your application suddenly stop working one day and start producing this exception? 
2.  Were there any changes made that caused this to happen? 
3.  Which exact VI in your attached ZIP file causes the problem?
     -->The only DAQmx VI's that I've seen are in "timedVout- v3- NI - 2 or 3 position valve.vi", and I can run that VI on my computer with no problem. 

One thing that you could try is to install (or reinstall) the latest version of NI-DAQmx, 8.3.  

Let me know if that helps or not.  If not, please answer the questions I've listed above and we can try to isolate the problem.

Thanks!

 
0 Kudos
Message 2 of 3
(3,256 Views)
I was able to track the problem to memory allocation.  As the program ran, it continually ate up more memory until it maxed out the available memory.  This then caused the crash.  I used the DAQmx configure Input Buffer.vi and the problem was resolved.
0 Kudos
Message 3 of 3
(3,251 Views)