05-07-2014 12:13 PM
OUTSTANDING!
And I see you found out about the refnum compare piccadillo the help file mentions.
How dynamic is that value wired to P? (If its ever larger than the number set in the configure loop parallism dialog you might get one more nasty surprise)
05-07-2014 12:27 PM
This particular controller will incorporate 16 thermocouple input channels, which can be grouped in any desired user defined configuration from 1 to 16 groups. Each group of thermocouple measurements is then subject to some signal processing resulting in one process variable per group for the PID. Consequently, I set the number of parallel loops in the Configure Iteration Parallelism dialog to 16 (the expected maximum), but generally there will be only 3 or 4 actually fed to the P terminal. That number is not really dynamic - it is set by the user in a configuration dialog prior to entering the control loop, and the thermocouple configuration can be changed at any time, but generally it is set, the preallocation code runs, and then the controller operates on the resultant size array(s).
Thanks for pointing me in the right direction.
Sean
05-07-2014 02:50 PM
No problem. I made you do most of the work anyhow. Makes for a fun day learning all that stuff!