Browse Publications Technical Papers 2016-01-0020
2016-04-05

Modelify: Semi-Automatic Conversion of Control Systems C Code to Simulink Models 2016-01-0020

Over the last decade, the automotive industry has embraced model-based development for control systems. Many of these companies have chosen Simulink from MathWorks to design and simulate these models. However, a remaining issue is the fact that many control systems were initially written in C and are still being used. Some companies have attempted to manually convert these C systems to Simulink models but have found this method to be too costly, error-prone, and time consuming.
EnSoft decided to tackle this problem by providing a semi-automated conversion using our Atlas for C tool. Atlas is a tool that maps software and creates a relation map for all parts of the program. It then offers the developer tools to query and visualize this graph. We have developed Modelify, a tool built on this framework that performs the necessary queries on a C project and creates equivalent Simulink models and subsystems.
In this paper, we will discuss some of the difficulties in such a conversion, including handling conditional logic and global variables. We will then discuss how Modelify can improve on the model generated from the C source, in order to meet customer expectations. We will also discuss how Atlas can be extended to create custom tools for visualizing, understanding, and validating C source code.

SAE MOBILUS

Subscribers can view annotate, and download all of SAE's content. Learn More »

Access SAE MOBILUS »

Members save up to 16% off list price.
Login to see discount.
Special Offer: Download multiple Technical Papers each year? TechSelect is a cost-effective subscription option to select and download 12-100 full-text Technical Papers per year. Find more information here.
We also recommend:
TECHNICAL PAPER

MultiCore Benefits & Challenges for Automotive Applications

2008-01-0989

View Details

TECHNICAL PAPER

Development of Modular Electrical, Electronic, and Software System Architectures for Multiple Vehicle Platforms

2003-01-0139

View Details

TECHNICAL PAPER

Application of the Confidence Level Concept in Reliability Analysis

2002-01-3415

View Details

X