How to create a scope viewer from a matlab command ?

1 次查看(过去 30 天)
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'])

类别

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