hello,

I want to calculate the parameters of PI controller, I need the tangent of the step response, can you please tell me how to do it.

cheers

hello,

I want to calculate the parameters of PI controller, I need the tangent of the step response, can you please tell me how to do it.

cheers

1 Like

Hi,

You can use the PLECS scope to do this. Either place the cursors close to the beginning of the step response and calculate the slope or, if you assume an exponential step response, place the second cursor at ≈63% of the final value and read off the time constant directly. (Like in the attached picture)

I hope this helps you.

Best regards,

NF

hello NF,

thanks for your reply, what I want to have is the A which means I need to see the slope so I can estimate the A which we are using in the PI ziegler method tunig

I still dont get your point in using the cursor as whe I use the 2 cursor,they are both just calculating time

cheers

Hi,

No, the cursors show the time but also the value of the displayed signal. To calculate the slope at a given point, place the two cursors t1 and t2 close together and read off the signal values u1 and u2 at both times t1 and t2. Then build the ratio:

slope = (u2-u1)/(t2-t1)

You might want to decrease the relative tolerance in the solver settings to get a better approximation of the slope.

For some operating systems (e.g. happens sometimes on Windows), you need to stretch the tab showing the signal values slightly to the right to effectively see the values. Like in the attached picture.

Best regards,NF