LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Motor RPM with PID control

Solved!
Go to solution

Hi Iza,

 


@lza_2331 wrote:

Thank you GerdW. 

 

Here are the corrections I made:

Used 250ms wait time, 

Initialized shift register using tick count,

Adjusted the PID output limits

Applied a median filter to PV.

 

Sample output attached.


You should additionally post your code so others can learn from it.

The sample output looks quite ok now - maybe a little more tuning of PID parameters can improve the step behavior even more…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 13
(137 Views)

Here is the VI.

 

lza

Download All
0 Kudos
Message 12 of 13
(129 Views)

Hi Iza,

 

much better.

 

Now you need to learn how to write "clean" LabVIEW code:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 13
(105 Views)