Hello everyone! I am building a model of a 4 motor drive, 4 battery box for a pure electric vehicle's vehicle controller. The whole vehicle fault is hierarchically managed and divided into three levels.
2 次查看(过去 30 天)
显示 更早的评论
Hello everyone! I am building a model of a 4 motor drive, 4 battery box for a pure electric vehicle's vehicle controller. The whole vehicle fault is hierarchically managed and divided into three levels. The first-level fault is the most serious fault. At this time, the vehicle is not allowed to drive, the motor is prohibited from working, and the relevant high-voltage relay needs to be disconnected. If the vehicle is charging, the charging is suspended; the second-level fault is a medium fault, in order to protect the vehicle and The safety of personnel needs to be reduced and run, so that the vehicle can drive at a limited power. If the vehicle is charging, the current is limited. The fault of level 3 is a minor fault. At this time, the vehicle only needs to send an alarm message to the driver through the meter to remind the vehicle to repair the vehicle. In addition to this, Level 1 and Level 2 faults are also displayed on the meter, and the driver has been informed of the vehicle fault information. These include some faulty battery temperatures, battery cell voltages too high, duration 15s, motor failures, other faults, etc. Can these fault handling models be modeled with simulink, can they automatically generate embedded code? The simulink model of the fault handling class generally uses which modules of simulink, and who can refer to the model can share it, I would be grateful.
![图片1.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/222606/image.png)
some fault like following
![tu2.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/222607/image.png)
0 个评论
回答(1 个)
Chirag
2020-1-3
Hi Apei,
Yes, you can model the fault detection and reporting logic in Simulink and Stateflow. Stateflow allows you to model statemachine, sequence logic and temporal logic.
You can read more about stateflow here. https://www.mathworks.com/products/stateflow.html
You can also generate embedded code for Simulink and Stateflow models using Embedded Coder.
Here is an example with Battery Management System which has fault daignostic model.
1 个评论
lee stone
2021-11-23
Hi, Chirag, the code runs with compile errors in the example :
Starting serial model reference simulation build ### Build procedure for Battery_Model aborted due to an error.
Battery_System_R2020a\work\slprj\sim\Battery_Model\tmwinternal\binfo_mdlref.mat: Invalid argument
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Powertrain Reference Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!