From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-07-2017 10:09 PM
Hi,
Here I have a PID control. And I've made a program to control the Plant as a setpoint. But I'm confused how to input this program become setpoint for PID control. Here I attached those 2 programs. Hopefully some of you can help me.
Thank you,
Dzimash
Solved! Go to Solution.
03-08-2017 12:34 AM - edited 03-08-2017 12:37 AM
Hi dzimash,
in your control loop you already use "PID Setpoint Profil", so all you need to do is providing the setpoints of your profile in this "setpoint profile" cluster! And even better: as this function already calculates ramps between the setpoints you only need to provide 6 XY pairs (for X=0, 6, 16, 23, 43, 51)!
Where exactly do you have problems with your control loop?
When you REALLY want to include your setpoint generation VI into your control loop:
- get rid of the while loop inside this sp generation VI
- then use it as subVI in your control loop
- delete the "PID Setpoint Profile" function, it isn't needed then…
(You should think about what should happen once your profile has finished.)
03-08-2017 01:15 AM
Hi GerdW,
Thankyou for your respond. Sorry before, I forgot to give a note above, that those PID Control already have setpoint, but I want to replace this setpoint with my program "progress parameter 2.vi".
About inputting those while loop from "progress parameter 2", I already try with using sub VI and FGV but I'am stagnant. Always error. Can you help me GerdW.
Thanks,
Best Regards,
Dzimash
03-08-2017 01:57 AM
03-13-2017 02:10 AM
Hi GerdW,
Sorry for my late respond. I can't open your file, because your version is newer than me. Can you help me please to convert your file? Thankyou so much GerdW.
Best Regards,
Dzimash
03-13-2017 02:30 AM
03-13-2017 02:48 AM
Hi GerdW,
Thankyou so much GerdW. :))
Best Regards,
Dzimash
03-16-2017 09:19 PM
Hi GerdW,
can I ask you more? Why the program couldn't do looping when I connect to the waveform chart? Can you help me again?
Best Regards,
Dzimash
03-17-2017 01:52 AM - edited 03-17-2017 01:57 AM
Hi dzimash,
Why the program couldn't do looping when I connect to the waveform chart?
It cannot loop because there is no loop…
Did you put this VI into the loop of your main VI? (See the steps mentioned here!)