01-12-2008 10:45 PM
01-12-2008 10:53 PM
01-12-2008 11:00 PM
01-13-2008 10:49 AM
It is impossible to tell without the missing subVIs, but most likely the "plant simulator" subVI never completes when called. What's in it?
Your while loop can not go to the next iteration until all code in it has completed.
01-13-2008 07:15 PM
01-14-2008 12:07 AM
01-14-2008
11:59 AM
- last edited on
04-29-2025
04:11 PM
by
Content Cleaner
Hi Wormwood,
Here are some standard debugging techniques for troubleshooting what is going wrong in your VI. Let us know if you receive any errors when running your code, and I'll be happy to help with those as well!
01-14-2008 08:24 PM
Hi Wormwood,
1. The plant simulator is suppossed to mimic the system that needs to be controlled. So technically, you should be plotting the Manipulated Variable (output of the PID and input/control for the plant) versus the Process Variable. The manipulated variable tries to bring the Process Variable to the Set Point.
2. The PID needs to be able to output control action that is both positive and negative. So, the output range of the PID should be set to (-100, 100), for example. In your VI, it was set to (0, 100), which means that the PID could never output any negative control.
3. You are performing some numeric operations on your Process Variable in the lower part of the while loop. Although, these affect the PV, you donot need to plot them in the graph.
I made some changes in your VI, some calculation is gone but its useful to see how the Manipulated Variable can actually bring the Process Variable to the SetPoint.
-Jaidev
01-16-2008 07:48 AM
01-17-2008 07:54 PM
Hi wormwood,
Here's the VI that I saved for LabVIEW 8.2. Please let me know if it works. Now as far as the PID VI goes, sure it could output in the 0-100% range but you would need a plant model that would accurately simulate loss of temperature through other media. I think you should avoid using the Plant Simulator VI and gor for a model that more accurately represents your system. The Plant Simulator is not a shipping VI and was made for the sake of the PID example.
Jaidev