Real-time control software design second week job

Source: Internet
Author: User

I. design of state machine for access control system of automobile

State machine all states:

Entry Gate sensor (two states): Ture False (denoted by ET and EF, respectively)

Gate sensor (two states): Ture False (expressed in OT and of)

Landing lever (two states): Up-down (indicated by up and DW, respectively)

Traffic light (two states): Red Green (denoted by R and G respectively)

External events received by the state machine:

Car entry and Exit Access System area: Enter out (denoted by E and O, respectively)

Action generated by the state machine:

Movement of the landing lever: go up go down (indicated by Gu and GD respectively)

All state transitions of a State machine: (original state, new state, trigger condition, generating action)

Original state trigger condition new State/action

EF-(E)-ET

of-(O)-OT

Up-(OT) GW (action)

DW-(ET) GP (action)

R-(UP)-G

G-(DW)-B

Due to the stateflow of MATLAB is still learning, simple to establish a state flow graph (the error is certainly more), only to represent my personal design, such as:

Later, you will continue to learn to design the diagram in detail and correct the errors, and use MATLAB to generate code directly.

Two. Other tasks

Real-time operating system application exercises, the program can function and stop;

Practiced git's simple command operation and associated git with Guihub;

Simple understanding of Ode's functions and cases;

Real-time control software design second week job

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.