필터 지우기
필터 지우기

Info

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

Error when propagating variable length signal

조회 수: 2 (최근 30일)
Andrew Poissant
Andrew Poissant 2018년 7월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
I have a simulink model that has an if action subsystem, and a matlab function block within that subsystem. The matlab function block outputs a variable of changing length, out1. The matrix size of out1 depends on sizes of other variables, which are not known until the if action subsystem block is activated during simulation. I declared out1 as variable size by calling coder.varsize('out1') in the matlab function block, and I specified the upper bound of the out1 and clicked the variable size check-box in the model explorer for out1. However, when I run the simulation I get the following error:
"The output signal sizes of block 'UAV_SIM_MAIN/GIHM1/Triggered Subsystem1/engine out/Gliding' depend on the input signal values. However, the subsystem that contains this block is set to 'Propagate sizes of variable-size signals only when enabling'. Consider placing this block outside subsystems with this parameter setting or changing the parameter 'Propagate sizes of variable-size signals' for 'UAV_SIM_MAIN/GIHM1/Triggered Subsystem1/engine out/Action Port' to 'During execution'."
How do I change the subsystem's parameter 'propagate sizes of variable-size signals' to 'during execution'? I can't take the Matlab function block outside of the subsystem like the error message suggests.

답변 (0개)

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

Community Treasure Hunt

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

Start Hunting!

Translated by