How to detect Enable/Trigger/Function call subsystem ?

조회 수: 8 (최근 30일)
Videet
Videet 2013년 9월 30일
댓글: Videet 2013년 9월 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
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
Kaustubha Govind 2013년 9월 30일
It should be:
en_ports = find_system(system_name, 'BlockType', 'EnablePort');
trig_ports = find_system(system_name, 'BlockType', 'TriggerPort');
  댓글 수: 1
Videet
Videet 2013년 9월 30일
Ya its working.. thank you.. Only one space was making it tough for me.. :O
What about function block? Do you have any idea for that ?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by