Simple State Machine for Elevator using app designer

版本 1.2.0 (63.6 KB) 作者: Dustin Ho
Graphically illustrate an elevator (consists of 4 floors) using the state machine and MATLAB app designer
270.0 次下载
更新时间 2019/9/3

查看许可证

The elevator consists of four floors which can be easily extended into 5, 6, or so on. It basically executes based on five different states in a simple state machine:
+ Idle: resting state. From that, the elevator can go up, down, door and emergency states. Two main conditions for the transitions between those states are: the door is opening/not opening and the elevator is moving/not moving.

+ The run main function is a timer function where the period is 0.03s (assuming that 30 frames/second is obtained for the smoothly moving objects, it can be slightly varied depends on the power of the computer).

+ The request of the floor can not be updated when the elevator is in Idle state and the pressing button is related to the current floor (cabin floor).

引用格式

Dustin Ho (2024). Simple State Machine for Elevator using app designer (https://www.mathworks.com/matlabcentral/fileexchange/72626-simple-state-machine-for-elevator-using-app-designer), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Develop Apps Using App Designer 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.2.0

Update Enable/Disable button and change its color based on the current request in the queue.

1.1.1

Update description

1.1.0

Update queue handle

1.0.1

Modify lamps

1.0.0