07-10-2017 01:34 PM
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.
Solved! Go to Solution.
07-10-2017 01:58 PM
Race condition due to Global Variables? PID needs reset?
07-10-2017 02:10 PM
Do you actually have three outputs in the task?
Ben
07-10-2017 02:38 PM - edited 07-10-2017 02:40 PM
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. 🙂