Clear Filters
Clear Filters

How can use embedded matlab function block as inherited ?

2 views (last 30 days)
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 ?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 27 May 2013
Edited: Azzi Abdelmalek on 27 May 2013
You can pass the output of your embedded function through a zoh block with sample time set to -1
  2 Comments
ozcan
ozcan on 29 May 2013
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 on 29 May 2013
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

Sign in to comment.

More Answers (0)

Categories

Find more on Discrete-Event Simulation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!