matlab - 如何在 MATLAB/Simulink Stateflow 中使用基于事件的时序逻辑?
问题描述
我正在寻找一种在 Simulink Stateflow 中使用基于事件的时态逻辑的方法。
示例:[State_1] --> [after(3,sec) && e] --> [State_2]
设想:
- 0 秒:State_1 处于活动状态
- 2 秒:e 为真
- 5 秒:State_2 处于活动状态(仅在 e 的 3 秒后)
期望:[State_1] -->(在e的 3 秒之后)--> [State_2]
结果: [State_1] --> ( State_1 3s 后) --> [State_2]
有解决方案吗?我在 MathWorks 官方文档中没有找到(MathWorks - 使用时序逻辑控制图表执行)
谢谢
解决方案
This is how I did it:
[State_1] --> [ e] --> [State_1_copy]--> (after 3s) --> [State_2]
combined with:
[State_1] <-- [ ~e] <-- [State_1_copy]
Entry
and left
action of state 1 may need to be changed depending on cases.
推荐阅读
- jquery - 全容器视频丢弃响应式代码
- amazon-web-services - [亚马逊](500150) 错误设置/关闭连接:连接超时
- python - 尝试发送电子邮件附件时出错
- javascript - 处理对象数组时如何构造 GraphQL 突变
- python - 为什么 python 在 for 循环中击败 c++?
- java - 字节数组到带流的 int 数组
- arrays - 将浮点列表转换为字节数组并返回 Python
- nginx - 如何防止NGINX代理转发给自己
- arrays - 我想在更新条件后查看我的所有联系人列表
- python - 屏幕尺寸百分比作为在屏幕上找到一致点的方式,与分辨率无关