How to create a scope viewer from a matlab command ?

I want to write a script that create scope viewer for signal line connected to the inports of my model. I need the block specific parameter name to use with the function set_param().
find_system(SysName,'LookUnderMasks','off','SearchDepth',2,'BlockType','Inport');
set(Handle_Line.Outport,'DataLogging',1);
I can do it with a data logging but I need the equivalent version for scope viewer.
Thanks in advance.

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 5 日

0 投票

add_block('simulink/Sinks/Scope',['model_name/scope_name'])

1 件のコメント

Julien Truong Canh
Julien Truong Canh 2016 年 4 月 6 日
Thanks but this command only create a scope block, I want to use Signal viewer, it puts the scope image on the link. http://fr.mathworks.com/help/simulink/ug/description_pix1.png

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeView and Analyze Simulation Results についてさらに検索

質問済み:

2016 年 4 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by