How to detect Enable/Trigger/Function call subsystem ?
6 次查看(过去 30 天)
显示 更早的评论
I am making small testing tool. In my work I need to detect Enable Port, Trigger Port and function call subsystems.
I tried the sentences like:
en_ports = find_system(system_name, 'BlockType', 'Enable Port');
trig_ports = find_system(system_name, 'BlockType', 'Trigger Port');
But this does not works..
My question is How to detect this kind of ports/subsystems using m script?
1 个评论
Jan
2013-9-30
Whenever I read "does not work" in the forum, I need a more detailed explanation of what happens. Do you get an error message or do the results differ from your expectations?
采纳的回答
Kaustubha Govind
2013-9-30
It should be:
en_ports = find_system(system_name, 'BlockType', 'EnablePort');
trig_ports = find_system(system_name, 'BlockType', 'TriggerPort');
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!