Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Signal name can not be detected during update diagram

조회 수: 1 (최근 30일)
Matthias
Matthias 2016년 1월 8일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello there!
I'm having a model with quite a number of subsystems. During update diagram some block callbacks are running which determine the signal names of the input ports by
LineHandles = get_param(block,'LineHandles')
PortHandle = get_param(LineHandles.(PortNum),'SrcPortHandle')
PropagatedSignals = get_param(PortHandle,'Name')
Anyway, most of the signals can be detected, but some are not (always in the same subsystems). So I get an error after model update :-(. What I did then was
open_system(get_param(block,'Parent'),'tab')
get_signal_name(...) %as described above
close_system(get_param(block,'Parent'))
This works a little bit better because after every model update one signal name more is found. So I can repeat this procedure as long as every signal name is found, but obviously this is not very satisfying. So my question is what happens here and what can I do against it? I could ask if the signal name is empty, but after that I should stop updating (I guess there is no possibility to do so...) and update again. But actually this behaviour should not be as it is I think. Thanks for your help! Greetings
Matthias

답변 (0개)

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by