Control Design: Linearization at multiple operating points simultaneously
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
In the "Control and Estimations Tools Manager" ... it was possible to do the above via Tools: Control Design -> Linear Analysis
Now in R2012a, the Linear Analysis tool opens when I select Tools: Control Design -> Linear Analysis. And it is not possible to do several linearizations with one click ...I created operating points with simulation snapshots [190 390 590 790 990] and when I start the linearizatin with that op, I get the following error:
Linearization Error, Source unknown, reported by Simulink Control Design, Summary: Index exceeds matrix dimensions.
Is that feature disabled in R2012a? If not, how can I do it?
Help is appreciated.
0 Kommentare
Antworten (3)
Arkadiy Turevskiy
am 12 Mär. 2013
Hi Stephan,
We released new Linear Analysis Tool in R2011b. It brings some new capabilities (interactive frequency response estimation, for example). We also think it makes it easier to do the same tasks people were doing before with Controls and Estimation Tools Manager.
I just checked on a different model (as I do not have yours) that in R2012a I can take snapshots at multiple simulation times simultaneously and then use the resulting variable to linearize the model at all these snapshots simultaneously. So I am not sure why you are getting the error. Would you be able to provide us the model and exact replication steps so we can better help you?
You can email me your files.
Thanks.
Arkadiy
Ryan G
am 12 Mär. 2013
It may be possible, I looked and couldn't figure it out right away, but let me describe a workflow that you may find better long term.
In 12a you can click the arrow below the start (looks like a play button) button. This will give you the option to generate code from your current linearization procedure. This code can be a script or function, I forget what options 12a had.
From this new function you will see the op input. You can drag and drop operating points from the linear analysis tool into the base workspace. You can also generate a matlab script that will run to generate operating points in the same way I previously described. In my opinion the ideal workflow would be:
1) Find operating point in the tool, generate MATLAB code. 2) Linearize in the tool, generate MATLAB code. 3) Use the 2 MATLAB-files you just created to run batch jobs (multiple operating points).
This should be faster to iterate on than staying in the GUI and you can be confident the functions will work as intended since you started in the tool.
0 Kommentare
Erman Korkut
am 13 Mär. 2013
Another alternative would be to use "Linearize At..." menu item in Operating Point drop down (2nd from the top, below "Model Initial Condition"), instead of capturing the operating point(s) first and then specify it for linearize. This would simulate the model to the snapshot times automatically and linearize during simulation.
As Arkadiy said, it would be great to look at your model to see what is going wrong.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Linearization finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!