Professional Documents
Culture Documents
”
Real-Time Workshop Embedded Coder.
For the calibration phase, they applied an
improved data-fit function that automatically
selected the best tradeoff between the maxi-
Salam Zeidan, Motorola
mum tolerable error and the number of table
data points and marked the selected optimal
point on a graph. They then generated an
optimal data table from the graph.
THE RESULTS
“Using the Model-Based Calibration Toolbox ■ Automatic generation of efficient
and the Curve Fitting Toolbox allowed us to C code. “The automatic scaling capability
fit the models optimally and greatly reduced of Real-Time Workshop Embedded Coder
the memory needed for calibration parameters. saved us much effort by helping us to
This was critical for our memory-constrained systematically define the data types and
automotive ECU application,” says Zeidan. binary points of signals throughout the
fixed-point models. The fixed-point code
To validate the design against the customer’s
generation also uses an advanced expression-
requirements, the engineers associated the
folding approach and has capabilities
model components to the written requirements
that were not previously available to us,”
with the Requirements Management Interface.
says Zeidan.
“Internal reviews were then easy, and we could
■ Optimized memory resources. By
demonstrate to our customer that all the
explicitly defining global variables rather
requirements had been met,” Zeidan explains.
than using the default structure-based
APPLICATION AREAS
The source control interface in MATLAB® code, Motorola optimized memory
■ Automatic code generation
enabled them to use Rational ClearCase to resources. Real-Time Workshop
■ Automotive engineering
perform common project management activi- Embedded Coder generated compact
■ Algorithm development
ties directly from within the MATLAB and fixed-point code that fit within the existing
■ Modeling and simulation
Simulink environment. 128KB of flash and 8KB of RAM.
■ Ability to detect design flaws before
Motorola Automotive may implement system
PRODUCTS USED generating code. “Simulating the models
tests using other MathWorks products,
■ MATLAB early allowed us to perform most feature
including xPC Target and xPC TargetBox™,
■ Simulink tests in the simulation environment before
for future automation of system validation
■ Stateflow the embedded code was generated,” says
and software bench tests. xPC Target enables
■ Fixed-Point Blockset Zeidan. “If defects were discovered during
a Simulink and Stateflow model to be simu-
■ Real-Time Workshop system testing, we could quickly recreate
lated in real time on an external PC, enabling
Embedded Coder the conditions from the test bench using
hardware-in-the-loop testing of the actual
■ Model-Based log files as inputs to the Simulink models.”
ECU system against the model of the physical
Calibration Toolbox
system being controlled.
■ Curve Fitting Toolbox To learn more about the Motorola Automotive
■ Requirements Group, visit www.motorola.com
Management Interface
© 2003 by The MathWorks, Inc. MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and TargetBox is a trademark of The MathWorks, Inc. 91101v 00 9/03
Other product or brand names are trademarks or registered trademarks of their respective holders.