필터 지우기
필터 지우기

How can use embedded matlab function block as inherited ?

조회 수: 2 (최근 30일)
ozcan
ozcan 2013년 5월 27일
I simulate discrete manufacturing system via simevents library. I know embedded matlab function block dosen't work inherited but I need previous attribute values in embedded matlab function block. I try unbuffer, buffer blocks, demux and bus blocks but they were not helpfull. I want to save previous attribute values for using embedded matlab function block. How can save previous attribute values as a vector ?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 5월 27일
편집: Azzi Abdelmalek 2013년 5월 27일
You can pass the output of your embedded function through a zoh block with sample time set to -1
  댓글 수: 2
ozcan
ozcan 2013년 5월 29일
Hi, I try that but I get this error message "Algebraic Loop: One or more signals originating from a discrete-event system in model 'buffer_dene' are being fed back to the same discrete-event system through a direct feedback path. This forms an algebraic loop, which cannot be solved due to the presence of event-based blocks." ?
Azzi Abdelmalek
Azzi Abdelmalek 2013년 5월 29일
This error message has nothing to do with a zoh block, in this case, maybe you should use a unit delay block instead of a zoh block

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Discrete-Event Simulation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by