フィルターのクリア

how can we call a scope to workspace witout opening the model file?

4 ビュー (過去 30 日間)
santhi krishna
santhi krishna 2012 年 2 月 7 日
in my project, i ve designed an active power filter using model file. In that for optimization of parameters, i ve used an algorithm. This model file is being called to the m-file(algorithm). Here i need a suggestion to compile the algorithm without opening the model file (i.e.,) only the scope should be viewed. with regards, shanthi.

回答 (2 件)

Roshin Kadanna Pally
Roshin Kadanna Pally 2012 年 3 月 8 日
You can save your model with Scopes closed. Then do the following:
load_system('modelName');
open_system('modelName/scopeName');
To compile the model (I assume this will also compile your algorithm):
set_param('modelName', 'SimulationCommand', 'Update');
This will not send data to the Scope. To view data on Scope, simulate the model using sim command. The model remains closed.

Andreas Goser
Andreas Goser 2012 年 2 月 7 日
In my view, you can run the simulation with the SIM command, but not open the scope. However, you can use the simulation data to plot the result in a MATLAB figure, that looks pretty much the same (compared to the scope).

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by