Error using Merge Block

조회 수: 7 (최근 30일)
Mohd Hazny Aziz
Mohd Hazny Aziz 2011년 9월 21일
Assalamualaikmum & Hi all
I have a problem that is matlab error report like this "output port 1 is required to be persistent, hence this signal cannot be connected to a Merge block."
anyone can help me
  댓글 수: 2
Fangjun Jiang
Fangjun Jiang 2011년 9월 21일
The output of what block are you connecting to a Merge block?
Mohd Hazny Aziz
Mohd Hazny Aziz 2011년 9월 21일
Continous Sigmoid block. It from WinCon toolbox

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

채택된 답변

Mohd Hazny Aziz
Mohd Hazny Aziz 2011년 9월 28일
Thanks for help my problem already fix. Its actually a bug when using matlab 2007b. I found the solution on this link http://www.mathworks.com/support/bugreports/528501

추가 답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 9월 21일
I don 't have that Toolbox so can't comment the specific. But simply said, you can not connect the output of that block to the Merge block. Double click the Merge block and click the "help" button, there is explanation about the Merge block. There are other situations that the output of certain blocks can not be connected to the Merge block.
  댓글 수: 2
Mohd Hazny Aziz
Mohd Hazny Aziz 2011년 9월 22일
ok. thanks for answering my question. However what does matlab mean by "is required to be persistent". Do you have any idea?
Fangjun Jiang
Fangjun Jiang 2011년 9월 22일
I know "persistent" from MATLAB M-programming point of view but never heard it is required by Simulink. Inside an M-function, you could define a variable temp, which is not an input argument nor an output argument. When the function is completed, the variable temp is going to be cleared. But if temp is declared as "persistent", it is not going to be cleared. Instead, it is saved, and the next time the same function is called, the variable temp can be used starting from its previous value.
Type help persistent or doc persistent for more information.

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by