Extracting a response time in simulink
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
So I have a control system in simulink which I have put into a test harness and I want to find the response time for that system to a step function. So I made a subsystem that returns a 1 when the demand and output systems are within 1% of each other and want to be able to extract a response time by taking the time taken for the 1 to appear away from the time at which the step function switches on but I'm stuck on how to do this. Any ideas?
4 Commenti
Risposta accettata
TAB
il 27 Lug 2012
Modificato: TAB
il 27 Lug 2012
It gives the simulation time. You can capture the time output of this block when your comparision satisfied.
-----OR-----
You can log the your data to workspace using To Workspace block selecting format as structure with time. Thus data will be saved in structure format at each time step.After simulation, using matlab commands you can find when the data reached to 1.
2 Commenti
K E
il 27 Lug 2012
I second the suggestion of post-processing in Matlab. You could check your calculation with plots etc.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Schedule Model Components in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!