Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

exception occurred - corrupted memory

Hi,
My problem involves the analog outputs of two 6024E DAQ cards in one machine. I created a VI which calculates a voltage based on some given properties and outputs a voltage value to each of 4 analog outputs (2 on each card). The voltage is updated every 2 seconds. Sporadically, I get a error (crash) which reads (see attached .doc file) "An exception occurred within the external code called by a Call Library Node. This might have corrupted Labview's memory. Save any work to a new location and restart Labview." There is indeed some kind of corruption because after clicking the O.K. button I must restart Labview because it locks up.

I have attached the code. I am wondering if there is a more efficient way to update each analog output channel. Or at least a way that doesn't give me such an error.

Thanks for your advice,

dewey



0 Kudos
Message 1 of 3
(2,982 Views)

Dear Dewey,

I can't tell what Interval Timer.vi does because its not attached, but if you can bring the create and clear task out of the while loop it would take up less memory. As I mentioned, all of the VIs aren't attached. Do you use the Call Library Node in any of them? Have you tried to copy and paste the program to a new VI? Does a simple restart fix the issue? Have a great day!

Sincerely,

Marni S.

0 Kudos
Message 2 of 3
(2,968 Views)
Hi Marni,

Thanks for your response. I put everything into a library this time. I will have to determine the best way to create and clear task...I could used some hints on that. As for the use of a Call LIbary Node, I do make use of one here. I haven't tried to copy and paste to a new VI yet. The whole Labview program must be restarted when this particular error occurs...everything locks up.

Thanks for your help,
dewey
0 Kudos
Message 3 of 3
(2,961 Views)