LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make setpoint for pid control

Solved!
Go to solution

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

Download All
0 Kudos
Message 1 of 9
(4,533 Views)

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.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(4,496 Views)

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

0 Kudos
Message 3 of 9
(4,487 Views)

Hi dzimash,

 

please see the attachment.

I can't guarantee for correctness as I don't have the SIM toolkit installed and so cannot run your VI…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Download All
0 Kudos
Message 4 of 9
(4,481 Views)

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

0 Kudos
Message 5 of 9
(4,438 Views)
Solution
Accepted by topic author dzimash

Hi Dzimash,

 

I can't open your file, because your version is newer than me.

Hint: Put the LabVIEW version you are using in your signature…

 

See attachment!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(4,432 Views)

Hi GerdW,

Thankyou so much GerdW. :))

Best Regards,

 

Dzimash

0 Kudos
Message 7 of 9
(4,424 Views)

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

0 Kudos
Message 8 of 9
(4,390 Views)

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!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 9
(4,381 Views)