11-14-2017 02:19 PM
I have a vi that is using the PID.vi compatibility version so I can change the option to be reverse acting. I want to replace the PID.vi with either the autotuning temperature PID.vi or autotuning PID.vi. The problem is that neither of those vi's have the option to change the output to reverse acting. Does anyone know how to do this?
My output is a 4-20mA signal that is controlling a VFD motor to increase or decrease coolant flow through a cooler based on temperature. The standard logic for the PID.vi's are programmed so when my input(temperature) is below the set point the output is at the high limit. I want the output to be at the low limit when my process variable is below the set point and I have that capability with the compatibility PID.vi.
11-14-2017 02:50 PM
11-15-2017 05:52 AM
Hi Gerd,
I attempted that but I get the same output. I was trying to figure this out with the PID.vi and was unable to get the output to work that way until I found the compatibility PID.vi that has all the options, reverse acting being one of them, and that was how I got it to work. I am using LabVIEW 2016 by the way I can attach some images of the gain settings I have and the outputs I am getting if that would be helpful.
Thank you.
11-15-2017 05:58 AM - edited 11-15-2017 06:01 AM
Hi Wesley,
when you need this "reverse acting" with functions from PID toolkit then you can very easily implement that on your own!
After all it's just simple math: to convert values from 4 to 20 to a range of 20 to 4 you just need to calculate out_new:= 24-out. Conversion of 0…100% to 100…0% is also simply "y:=100%-x":
(This will work for the mentioned output ranges…)