09-17-2021 10:34 AM
Hi,
Could anyone help me to understand the mathematical background of PID Lead-Lag VI?
The equation mention in the VI
There is a Phase lag between my encoder signal and measured force. My measured force is lagging 8 to 12ms of the encoder signal. Can I use it to lead the measured force from my system so that it synchronizes with the encoder signal?
Thank you.
09-17-2021 10:54 AM
Hi Moni,
@Moni98ce wrote:
There is a Phase lag between my encoder signal and measured force. My measured force is lagging 8 to 12ms of the encoder signal. Can I use it to lead the measured force from my system so that it synchronizes with the encoder signal?
I don't think so: after all it's a PID controller implementation…
Why don't you correct the lagging delay by either
09-17-2021 11:17 AM
Hi GerdW,
Thank you for your response. I am collecting the encoder signal to the Host PC and the Force in NI cDAQ-9137.
I do not know how to manipulate the timestamp of the encoder waveform or shifting the encoder or force sample array to correct the lag? Could you please give me a reference or example that will help me? The block diagram of my system is here.
I observed if I use the Lead-Lag Compensator and perform the free vibration then it is working, I mean the damping I am getting from the free vibration is as same as my input damping for the numerical substructure. If I do not use it then I am getting extra positive damping.
Thank you.
09-17-2021 01:40 PM
It is not working actually. I did some mistakes.
09-20-2021 02:19 PM
Hi,
In the PID lead-lag VI Equation (4) is used as a transfer function and Equation (5) is used to calculate the output based on equation (4). Is there anyone please explain it? As per my understanding equation (4) will be like equation (3) for lead-lag compensation. However, they used equation (4) which I did not understand. How does equation (5) come from Equation (4)? Thanks in advance.
09-21-2021 11:04 AM
Is there anyone who can explain it? It will be a great help for me.
09-21-2021 11:17 AM
In general, without any control system knowledge, we can only verify if the equations are implemented appropriately in LabVIEW.
Beyond that why the control system equation is derived to such a state and how can only be explained by experts.
It looks like you did not develop all these and provided to you by your professor as part of some academic course, I would rather recommend you reaching out to your professor for an explanation on why it is such a case.
Please let us know if you need to know something in LabVIEW, any control-system related questions, this may not be the right forum.
09-21-2021 11:28 AM
Hi Santo,
Thank you so much for your nice suggestion. Actually, the Lead-Lag VI provided in the LabVIEW does not make sense to me. Maybe I am wrong because I am not a control engineering student. As per my understanding, the equation will be like equation (7) if I just transfer the s domain to the z domain.
Before using the VI I want to make sure everything is correct for the VI. Thank you again.