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: 

how to apply notch filter in the PID control

Dear all,

I am using PID control in my positioning stage but the output is every noisy with some fixed frequencies(30,50,150Hz). I want to add a notch filter to take off those noise. However, I do not know how to apply the notch filter to the PID module. Could anyone tell me how and show me example if you have?

Thanks

best

Download All
0 Kudos
Message 1 of 8
(4,491 Views)

Hi iyearning,

 

how fast does your stage move?

Wouldn't it be easier to apply a "simple" low pass filter instead of filtering 3 different frequencies of your position signal?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(4,479 Views)

How fast is your stage moving? How fast does the PID loop run? How are you measuring the frequencies of the "noisy" output?

 

Filters usually apply to an array of numbers, not a single value. You need multiple points to even define a frequency.

 

I agree with GerdW that something simpler may be adequate.

 

Lynn

0 Kudos
Message 3 of 8
(4,454 Views)

Dear Gerdw,

I hope the stage can move with frequency of around 60 Hz. So I think I have to use a notch filter rather than a low pass filter.

Thanks

best

0 Kudos
Message 4 of 8
(4,435 Views)

Dear Zealot,

The natural frequency of the stage is 30Hz. The frequency of the PID loop is now set as 10 Hz. I measure the position information and use FFT to get the frequency information. For each loop, there are 200 numbers, I think it may be enough for the filters. I hope I can increase the PID loop frequency upto 60Hz. I think I need to add both the notch filter and lead-lag filter into the controller.

Thanks

best

0 Kudos
Message 5 of 8
(4,433 Views)

If the natural frequency of the stage is 30 Hz, you may have difficulty getting good control over the 0-60 Hz range. You did not mention the type of stage or provide any specifications. Many devices undergo large rapid phase changes near their natural frequencies. A transfer function like that may create major challenges for the controller. Even if you are able to tune the controller and one or more filters to get it to work, any change in the loading of the stage may shift the natural frequency enough to detune things.

 

Lynn

0 Kudos
Message 6 of 8
(4,408 Views)

Hi LYnn,

I am sorry for my late reply. My stage is driven by a voice coil actuator (VCA). The VCA as a resolution of 1 um and range of 6 mm. The NF of the stage does shift when the load is changing. Do you have any advice for controlling such kind of stage?

BTW, as far as I see, the control frequency is determined in the DAQ Assistant settings and its value is equal to "Sampling rate"/"Samples to read", am I right?

Thanks

best

0 Kudos
Message 7 of 8
(4,195 Views)

Here is the link that will give you more description of my system and my problem.

minimize the chattering of a linear stage driven by a voice coil actuator(VCA)

Thanks

best

0 Kudos
Message 8 of 8
(4,192 Views)