From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), 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: 

Controlling Motor RPM with PID control

Solved!
Go to solution

Hi Iza,

 


@laz_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
(380 Views)

Here is the VI.

 

lza

Download All
0 Kudos
Message 12 of 13
(372 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
(348 Views)