Data Overflow Handling in ECU Application Layer Model Development

Data Overflow Handling in ECU Application Layer Model Development

During the development of the ASW model for automotive ECUs, the toolchain and development environment are usually configured at the early stages of the project. For instance, in the Simulink model library, even the simplest operators, such as Add, are configured to standardize the usage of various Simulink blocks among team members.As a team member, … Read more

Implementing Battery SOC Prediction with SVR: From Code to Simulink Simulation

Implementing Battery SOC Prediction with SVR: From Code to Simulink Simulation

1. Why Choose SVR for SOC Prediction? SOC prediction is essentially a regression problem — predicting the remaining battery percentage based on features such as voltage, current, temperature, and time. Support Vector Regression (SVR) performs excellently in small sample, nonlinear problems, making it particularly suitable for batteries, which are influenced by multiple factors and have … Read more

Fault Injection Testing Method in Simulink

Fault Injection Testing Method in Simulink

In safety-critical fields such as automotive, aerospace, and medical devices, system robustness directly determines whether products can maintain safe operation under abnormal conditions. Fault Injection Testing actively creates abnormal scenarios to verify the system’s fault tolerance capabilities. This article focuses on the technical points and implementation process of fault injection testing within the Simulink environment. … Read more

Simulink Multi-Task Code Generation and Real-Time Scheduling

Simulink Multi-Task Code Generation and Real-Time Scheduling

In the model-based design (MBD) process, multi-task code generation and real-time scheduling serve as a critical bridge connecting model design to hardware implementation. As the functionality of industrial control systems becomes increasingly complex, issues such as multi-rate sampling, real-time task priority management, and resource conflict avoidance have become significant development challenges. Simulink provides comprehensive support … Read more

Basic Tutorial on RLC Circuit Simulation with MATLAB

Basic Tutorial on RLC Circuit Simulation with MATLAB

This article demonstrates how to perform circuit simulation using MATLAB to measure the voltage of an RLC circuit. I am using R2014a, and the interface may vary slightly in different versions of the software. Open the MATLAB software and create a new Simulink Model, as shown in the figure below. After the untitled window pops … Read more

Understanding the Multi-Workspace Mechanism in Matlab

Understanding the Multi-Workspace Mechanism in Matlab

In Matlab development, the workspace is the core container for variable storage and management. Effectively utilizing the multi-workspace mechanism not only enhances the modularity of the code but also effectively avoids variable conflicts and improves program maintainability. This article systematically analyzes the types and scope rules of Matlab’s multi-workspaces, focusing on the logic of workspace … Read more

Practical Application of Model-Based Design (MBD) in Automotive Embedded Development

Practical Application of Model-Based Design (MBD) in Automotive Embedded Development

1. Background and Application Value of MBD Technology In the field of automotive electronics, Model-Based Design (MBD) has become the mainstream method for embedded system development. Compared to traditional handwritten code development, MBD achieves algorithm visualization design through graphical modeling (such as Simulink/Stateflow). Its core advantages include: – Early design verification: Algorithm logic can be … Read more

Simulation of a Single-Phase AC Voltage Controller with Two Back-to-Back Thyristors (Simulink Implementation)

Simulation of a Single-Phase AC Voltage Controller with Two Back-to-Back Thyristors (Simulink Implementation)

Gift to Readers Conducting research involves a profound system of thought, requiring researchers to be logical, meticulous, and earnest. However, effort alone is not enough; often leveraging resources is more important than sheer hard work. Additionally, one must have innovative ideas and inspirations that look up to the stars. It is recommended that readers browse … Read more

Fractional Order PID Control MATLAB Simulation Example

Fractional Order PID Control MATLAB Simulation Example

The following is a MATLAB-based simulation example of a Fractional Order PID (FOPID) control, utilizing MATLAB’s Simulink tool and the FOMCON toolbox: System Model Assume the controlled object is a first-order inertia link with pure delay (FOPDT) model: Where, , , . Fractional Order PID Controller Design The form of the fractional order PID controller … Read more

Using if-else in ECU Application Layer Model Development

Using if-else in ECU Application Layer Model Development

In the development of ECU (Electronic Control Unit) software, conditional judgment is key to implementing various control logics. SIMULINK, as a powerful graphical modeling tool, provides a rich set of functional modules for ECU application layer software development, among which the if-else structure is one of the commonly used methods for implementing conditional control. By … Read more