05-28-2008 09:02 PM
05-28-2008 10:34 PM
Hi Raghunathan,
Can you please repost the VI saved for some higher version so that I can open it in 8.5.1?
It is in a too low version to be opened in 8.5.1. ![]()
05-28-2008 11:24 PM
05-29-2008 12:25 AM
05-30-2008 09:05 AM
Hi Raghunathan,
I looked over the example you provided and as you suggest it is a simple PID control loop. As a result, if the system you are trying to control is simple (as it sounds) the VI should work to control it as long as you stay within the limits of your PC . Since the PID loop is in software, running on a Windows PC, it will suffer from a slow response time (Windows can only be reliable to a ~10mS minimum period of iteration for the loop). You will also need to manually tune the gains for your PID. If you do have some control theory knowledge this example should work just fine, if not I would recommend the PID Toolkit which helps you to build your PID loop, including tuning. I hope this helps to direct you on the right path.
Cheers,
Jonah
Applications Engineer
National Instruments
05-30-2008 12:22 PM
06-07-2008 06:36 AM
Hi Jonah,
Before I bring in the DAS hardware in picture, I was trying to figure out the PID loop with a simple controls for Set value and Process Variables.
By and large its fine and well controlled. But when I try to run the PID_Demo.VI with the set point at "5" and Process variable at "0", then I find that the output suddenly jumps to a large value like 3 or 4 and then ramps up to saturate. How to avoid this initial jump ?
Thanks.
06-10-2008 02:58 PM
Hi Raghunathan,
I explored your attached PID_Demo.VI; however, I found that it was unstable for every instance of your Set Point and Process variable. In every case the output saturates to either the upper or lower bound. It appears that your tuning values are incorrect because of this saturation. Please let me know if you are seeing the same characteristics.
Thanks.
Cheers,
Jonah
Applications Engineer
National Instruments
06-10-2008 09:44 PM
Hi Jonah,
Try it out this way :
Set the Set point at 5.
Set the PV also around 5 .
Start the VI and now as the output reaches 5 you can tweak the PV knob and manage to maintain output at around the 5 volt level.
I have tried the above for other values like 2, 9 etc The key is to keep adjusting the PV and NOT allow the output to saturate.
Please revert if the above does not happen.
06-11-2008 01:54 PM
Raghunathan,
Based on your previous post, I was able to get the output to settle at the desired set point. However this method requires the user to dynamically change the Process Variable and therefore does not have the characteristics of a closed loop PID system. A usual closed loop control system is able to reach the user set point without user interaction. Do you want the user to dynamically change the Process Variable?
Cheers,
Jonah
Applications Engineer
National Instruments