The invention discloses an
automobile air conditioning system state transition design method and
system based on Simulink and StateFlow. The core lies in separating definition and execution links of state transition rules, constructing a two-dimensional
state transition table through a visual table tool, and defining a current state, a transition condition and a transition result containing a target state, a memory command and a user-defined command; a Simulink module in the fixed execution framework analyzes the migration table and outputs a target state and a command
signal, a StateFlow module executes stack operation to manage historical state memory, and an independent
logic module processes a self-defined command; the historical state popped up by the stack is preferentially adopted during state updating, and the target state is switched when the state is invalid. According to the method, through rule and execution decoupling, stack type
state management and a command expansion mechanism, the problems that a traditional state
machine is complex in maintenance and migration table scale expansion and function expansion are difficult are solved, the configurability, operation efficiency and
maintainability of the
system are remarkably improved, and the method is particularly suitable for the multi-scene air conditioner control requirement of the
electric vehicle.