04-29-2007 09:09 PM - edited 04-29-2007 09:09 PM
Message Edited by rgentry on 04-29-2007 09:11 PM
04-30-2007 02:28 AM
Could you point to me where do you find this PID algorithm?
you could always try to build your own PID subvi, and check again. you might need different gain parameters for each lamp tough...
04-30-2007 06:37 AM
04-30-2007 07:52 AM
rgentry,
The PID has two modes of operation: Single Channel and Muti-channel. The way you developed your algorithm, you are using single channel algorithm with multiple setpoint and variables. This will not work properly since LV will not keep the internal states correct for each channel.
To fix this, it is pretty simple. Remove the For Loop and provide the whole 1D array to the PID.vi. This will enable the "multi-channel" mode and every time you call your VI, it will keep the internal states for each channel, as if you had 6 different PIDs in parallel. Notice that the interpolation also will work the same way, you just need to remove the build array primitive.
Hope this helps!
04-30-2007 08:10 AM