LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI runs once then errors

Solved!
Go to solution

Hi all,

 

I've got a pretty simple diagram that's got me stumped. What I'm trying to do is control three analog output channels off one task. It's a closed loop system that that has three channels controlling some pressure regulators. It runs with no errors for the first iteration and then has an error every iteration after that. The error is -200288  "Attempt to write beyond the finale ample generated". Here's the code.

Capture.PNG

0 Kudos
Message 1 of 4
(2,598 Views)

Race condition due to Global Variables? PID needs reset?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,582 Views)

Do you actually have three outputs in the task?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 4
(2,574 Views)
Solution
Accepted by topic author GDthomas

Actually I stumbled on to the solution. In MAX I had the mode set to N samples rather than one on demand. Changed that and it works perfectly.

From now on I don't post any questions on a Monday until I've checked it on Tuesday.  🙂

 

 

0 Kudos
Message 4 of 4
(2,562 Views)