tarunag7 Posted January 2, 2013 Report Share Posted January 2, 2013 I am trying to find out the settling time and rise time of a control system using simulation Module I have created the vi .But the problem that i am facing is to find out the values from the given data( i.e from the collector block). I want to find out the maximum value and the time at wahich the maximum value is achieved. similarly the time at which value gets settled and the corresponding value. Can any body plz help me in this regard. Untitled 1.vi Quote Link to comment
JLMommy Posted January 2, 2013 Report Share Posted January 2, 2013 The collector block returns a cluster with two arrays: Time and Signal. Use Unbundle by Name or Unbundle to extract the arrays. You can then use Array Max/Min on the Signal array to find the maximum value - the value and index will be returned. Use Index Array on the Time array to extract the corresponding time: Repeat for settling time. You'll need to figure out how you want to determine the settling time of your system. You may want to find where the value stops changing or doesn't change by more than a percentage or maybe you know an exact value. The idea is the same - search the array for a certain value, use the index of this value to retrieve the corresponding time. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.