How can I trigger an event in a Discrete-Event Chart based on the continous signal value?

3 次查看(过去 30 天)
I am trying to model a hybrid system composed of discrete event part and continuous part.
The Discrete Event Chart sets the input of the continuous process (Transfer function block). Once the response of the continuous process has settled the Chart should react to this and change its state (and release the entity). The server calls the Simulink function "trans" on entry.

采纳的回答

Krishna Akella
Krishna Akella 2019-4-5
Hi Nemanja,
Have you tried using 'Message Send' and 'Message Receive' blocks? These blocks can be used to interface continuous blocks with discrete blocks and vice-versa.
If your release is R2018a or greater, you can additionally use the 'Hit Crossing' block.
Regards,
Krishna
  1 个评论
Nemanja Hranisavljevic
Thanks for your answer Krishna,
"Hit Crossing" block solved the problem. It detects that the signal has settled and sends the message to the discrete chart.
Regards,
Nemanja

请先登录,再进行评论。

更多回答(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