Can I describe a state machine with requirements table app in Simulink?
6 ビュー (過去 30 日間)
古いコメントを表示
Cristian Napole
2022 年 10 月 18 日
コメント済み: Dalton L'Heureux
2022 年 10 月 18 日
Is it possible to use a state machine (like one that could be defined in transitions table from stateflow app) in requirements table?
2 件のコメント
Pat Canny
2022 年 10 月 18 日
Great question! This is feasible. I have passed along your question to my colleague who developed the table - expect an answer below from him shortly.
Thanks.
Dalton L'Heureux
2022 年 10 月 18 日
Hey @Cristian Napole, I've got a demo for doing just this I'd be happy to show you. There are a few things you need to be aware of to get this to work. I'd also be interested on learning about your end goal for having the state machine in a Requirements Table.
採用された回答
Darren Valovcin
2022 年 10 月 18 日
Yes, it is possible to model a state machine in the Requirements Table. Create an output data for the Table which represents the current state, often done by defining an enum whose values correspond to the state names. Then you can use the isStartup keyword in a requirement precondition to define the initial state, and the prev function with the output data in subsequent requirements to specify how the state should evolve. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1160738/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1160738/image.png)
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!