필터 지우기
필터 지우기

State machine transition with bus data

조회 수: 2 (최근 30일)
Adam Zilahi
Adam Zilahi 2024년 4월 14일
답변: Mark McBroom 2024년 4월 16일
I use long time matlab&simulink, but in simulink I just started using state machine.
I need to use output buses, but I would like to use bus data, that transition one state to the other.
But I don't know, how I do. I try to initial it in model explorer, not working. I created struct in workspace, not working.
My problem is that, I have multiple boolean data output, that I need to use outside the state machine, and I need to use them, to switch one state to the other.
What I can do?
Thanks in advance for your help.
Adam Zilahi

답변 (1개)

Mark McBroom
Mark McBroom 2024년 4월 16일
Try creating a Simuilnk.Bus in base workspace (or Simulink data dictionary) that has the desired fields (abcSeqOK, etc). Then set the data type of the recVar to be this newly created bus.

카테고리

Help CenterFile Exchange에서 Composite Interfaces에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by