11-19-2018 03:09 PM
I'm trying to recreate a system that controls the MAP using a PID controller by varying the PID parameters to modify the infusion rate signal, but the output of the system is the same as the input which I actually think is because the transfer function is not working. Here is my block diagram and the results.
I went through some discussions here and non of them solved the issue. I currently use the MathScript block to write the transfer function.
11-20-2018 10:08 AM
Is a supposed to be a negative value?
Do you have access to MATLAB to plot the step response of your transfer function to make sure it is as you expect?
Furthermore, have you tried using a very simple transfer function in your code to ensure that would give expected outputs?
11-20-2018 10:10 AM
How To Plot The Step Response of a Transfer Function
https://www.youtube.com/watch?v=b3BpSqE-nAw
11-20-2018 10:42 AM
@AvatarAang wrote:
Is a supposed to be a negative value?
Do you have access to MATLAB to plot the step response of your transfer function to make sure it is as you expect?
Furthermore, have you tried using a very simple transfer function in your code to ensure that would give expected outputs?
Yes a is a negative value.
Yes I have access to Matlab and I've tried plotting the step response but I'm not sure of the output. Someone suggested that the matlab code is not right and we tried to use filter function in matlab and it works with a step response in matlab. However, when we copied the function to labview it still the same output even though the transfer function is different.
As for you're last question, yes we've tried using simple first order TF and it works just fine.
11-20-2018 10:44 AM
Yes this is similar to what we've tried with Matlab, but as i said were not sure about it yet.
11-21-2018 06:01 PM
How does it look in MATLAB and what code did you use to test it?
Also, could we see what the response looks like using a simple TF in the LabVIEW code?
Very strange.