필터 지우기
필터 지우기

Model reference function-call output invalid connection

조회 수: 40 (최근 30일)
Borja Heriz
Borja Heriz 2013년 8월 7일
Hello,
I am using a model reference block inside which there is a C MEX S-Function with a function-call output. When I connect the function block (once in the parent simulink diagram) to a function-call subsystem I receive an error telling me that the connection inside the referenced block between S-Function and outport block is invalid because the outport block is not a function-call model.
Does anyone know how can I use reference a model with a function-call outport?
Thanks,
Borja

답변 (2개)

Nirmal Gunaseelan
Nirmal Gunaseelan 2013년 8월 7일
Could you also paste the exact message? I guess you have already checked the box "Accept Function call" in the Outport block.
Currently, function-calls cannot cross model reference boundaries. This is however on the radar to be allowed in a future release - have a look out in release notes of future releases.

Borja Heriz
Borja Heriz 2013년 8월 8일
Hello,
Here is the exact message I receive.
Error due to multiple causes. * Invalid "function-call" connection * Invalid connection starts with S-function 'Test3/Wrapper S-Function' which is making a function call on output port element 1 * Invalid connection ends with 'Test3/fcall' which is illegal because it is not a function-call system. This error message is related to a hidden Outport block.
Where can I find the box "Accept function call"?
I have tried also a couple of tests, but I have receive the same error message wheen updating the parent model (the one with the referencing block).
(1) in the referenced model I have put the S Function inside a function-call subsystem and configure the outport connected to the function-call output to inherit the input signal.
(2) The viceversa. I mean, in the parent model put the referencing block inside a function-call subsystem and configure the function call ouput to inherit form the input signal.
Any suggestions please?
Thanks a lot
  댓글 수: 1
Nirmal Gunaseelan
Nirmal Gunaseelan 2013년 8월 8일
편집: Nirmal Gunaseelan 2013년 8월 8일
Borja,
Is 'Test3/fcall' a referenced model or a function-call subsystem? Currently it has to be a function-call subsystem or a regular subsystem with an Inport block marked as "Output function call".
The field "Accept function call" can be found in the block dialog of the Outport block. You have to have this parameter checked ON if you want to allow it to pass function-call signals into a subsystem (not a referenced model).

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

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by