Skip to content

stepinfo #748

Answered by murrayrm
bsrakd asked this question in Q&A
Jul 3, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The step_info command returns a Python dictionary object with the properties of the step response. The for loop in the example iterates over the keys of the dictionary and prints the name of the key and its value.

For your example, it turns out there is a small twist: the undershoot is zero and so the format string above will generate an error due to the way that 3.4 is interpreted (this format string only works for floats). But you can retrieve the values just by looking at the key-value pairs in S. Using ipython, I get:

{'RiseTime': 0.9768542818762616,
 'SettlingTime': 7.814834255010094,
 'SettlingMin': 0.9069710996980537,
 'SettlingMax': 1.305008244865823,
 'Overshoot': 30.500824486582…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bsrakd
Comment options

Answer selected by bnavigator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants