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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic PID setpoint

Hellow friends,

 

My issue is I have a setpoint in PID which is variable sine wave,

 

The PV should follow the dynamic setpoint , it has a frequency of 4Hz.

 

How to achieve this ?.........

0 Kudos
Message 1 of 3
(2,702 Views)

Hi chintamani,

 

as usual the answer is: THINK DATAFLOW!

 

Connect your sine signal with the PV input of your PID function…

Best regards,
GerdW


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

Go to Help Menu and click on "Find Examples...". Then under "Control and Simulation", find "PID". There you have several examples of how to do PID control.

 

Then, look at the 'Simulation - Lead-Lag.vi". This examples shows how to create a sinewave and apply to the controller (in this case, a lead-lag controller).

 

The trick to feed signals to PID is to think as how you can feed the controller with one point after another. You can also look at the point-by-point palette under signal processing. And if you profile is based on steps and ramps, look at the setpoint profile.vi in the PID palette.

 

Hope this helps...

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 3 of 3
(2,628 Views)