How to use same properties in different MATLAB Discrete-Event System?

4 次查看(过去 30 天)
Hi, I'm new to Simulink in Matlab. Would someone help me to figure it out?
I want to develope a scheding system with simulink, and there are multiple steps which I want to code in different MATLAB Discrete-Event System.
Each MATLAB Discrete-Event System have same properties.
How can I transfer the properties to each blocks in real-time?
Thanks for your solutions!

回答(1 个)

Shadaab Siddiqie
Shadaab Siddiqie 2021-7-28
From my understanding you want to feed inputs from one Discrete-Event System into another Discrete-Event System. For that you can try the 'MATLAB Function' block. You may be able to insert part of your script into the function (double click on the block) and this will execute on every Simulink time step. So, if you can make the function capture and return a datasample then you can feed that into your Simulink design.
You can also look into Record block in Simulink to record the values of your Discrete-Event System and later feed it into another Discrete-Event System if they are independent.

类别

Help CenterFile Exchange 中查找有关 Discrete-Event System Objects 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by