How to create a scope viewer from a matlab command ?

조회 수: 3 (최근 30일)
Julien Truong Canh
Julien Truong Canh 2016년 4월 5일
댓글: Julien Truong Canh 2016년 4월 6일
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일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by