Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

how to draw or create a tangent for step response so I can take the value of A to tune PID?

+1 vote

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.

asked Feb 8, 2018 by EMdude (75 points)

1 Answer

+2 votes

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,
answered Feb 13, 2018 by Niklaus Felderer (68 points)
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



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 uat 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,


Ok I have got your point now but as I want to measure the A which you can see in the image below I still cannot calculate or estimate the A