Design World

  • Home
  • Technologies
    • ELECTRONICS • ELECTRICAL
    • Fastening • joining
    • FLUID POWER
    • LINEAR MOTION
    • MOTION CONTROL
    • SENSORS
    • TEST & MEASUREMENT
    • Factory automation
    • Warehouse automation
    • DIGITAL TRANSFORMATION
  • Learn
    • Tech Toolboxes
    • Learning center
    • eBooks • Tech Tips
    • Podcasts
    • Videos
    • Webinars • general engineering
    • Webinars • Automated warehousing
    • Voices
  • LEAP Awards
  • 2025 Leadership
    • 2024 Winners
    • 2023 Winners
    • 2022 Winners
    • 2021 Winners
  • Design Guides
  • Resources
    • 3D Cad Models
      • PARTsolutions
      • TraceParts
    • Digital Issues
      • Design World
      • EE World
    • Educational Assets
    • Engineering diversity
    • Reports
    • Trends
  • Supplier Listings
  • Advertise
  • SUBSCRIBE
    • MAGAZINE
    • NEWSLETTER

Software Collaboration to Improve Engine Controllers

By Design World Staff | October 9, 2009

Electronic engine control is an important component of all Cummins engines. However, developing reliable engine controllers that work without failure under a variety of conditions can be challenging.

cummins-graph.jpg

This PolySpace reliability metric indicates how software quality has improved over time. The dashed blue lines represent the start of verification with PolySpace and the period in which new code was added for verification.

Traditional software development and verification techniques at Cummins were based on manual interaction including code review and white-box code testing followed by component and integration tests. While most errors eventually manifested themselves in system-level testing, software complexity compounds the error isolation effort. This resulted in cumbersome debugging efforts.

To address this complexity, Cummins created a product-line approach to increase software reuse. Its developers used MathWorks’ Simulink and Stateflow software for engine control design. The automatic code generation reduces development cycle time and costs. For software verification, Cummins engineers agreed that relying on testing at the component or system level was not sufficient. They were not completely confident with the data. They needed a way to augment unit test and improve overall software testing processes.

Automatic code generation can eliminate syntactic and sub-function coding errors. However, errors continued at Cummins. For example, when inputs that have dynamic ranges are combined, overflows may occur. Run-time errors such as divide-by-zero and out-of-bound array access may also surface in hand written and automatically generated code when these types of codes are combined into the full system.

Traditional unit testing called for creating labor-intensive test cases to simulate failure modes. To remedy this situation, the company added MathWorks’ PolySpace code verification software to its existing software tool set. Cummins’ goal was to detect and prove the absence of certain types of run-time errors. Operating directly on C or C++ source code, PolySpace uses a mathematical proof-based technique known as abstract interpretation. The verified source code is linked back to the Simulink model and is annotated in four colors.

PolySpace products determine potential run-time error violations automatically. As a result, there is no need to develop test cases for run-time error conditions. This approach improved the unit test process. Developers now spend time analyzing test results, not creating unit test cases.

cummins-2.jpg

The verification source code is linked to the Simulink model and is annotated in four colors.

Cummins has experienced successes using the new tool set. For instance, an OEM experienced intermittent engine shutdowns. Prior to using the software products, Cummins and the OEM spent three weeks trying to isolate the problem. Using PolySpace, they discovered that the root cause was a decremented index that may go beyond zero, resulting in a reset. After the code was corrected, the OEM never experienced the issue again. In other cases, problems were resolved earlier in the development process.

Cummins also developed a Simulink style guide with best practices for the product-line architecture implementation. Defects found in unit tests are corrected and applied across the product line. Cummins estimated that this workflow saved them $250,000.

Cummins Engines, Inc.
www.cummins.com

The MathWorks
www.mathworks.com

You might also like


Filed Under: Automotive, ENGINEERING SOFTWARE, ELECTRONICS • ELECTRICAL
Tagged With: The Mathworks
 

LEARNING CENTER

Design World Learning Center
“dw
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for Design Engineering Professionals.
Motor University

Design World Digital Edition

cover

Browse the most current issue of Design World and back issues in an easy to use high quality format. Clip, share and download with the leading design engineering magazine today.

EDABoard the Forum for Electronics

Top global problem solving EE forum covering Microcontrollers, DSP, Networking, Analog and Digital Design, RF, Power Electronics, PCB Routing and much more

EDABoard: Forum for electronics

Sponsored Content

  • Five Uses for the Parvalux Modular Range
  • Robot Integration with Rotary Index Tables and Auxiliary Axes
  • How to Choose the Right Rotary Index Table for Your Application
  • Designing a Robust Rotary Index Table: Engineering Best Practices for Long-Term Performance
  • Custom Integration Options for your New and Existing Rotary Table Applications
  • How Apple Rubber’s Rapid Prototyping Kept Whale Research Afloat
View More >>
Engineering Exchange

The Engineering Exchange is a global educational networking community for engineers.

Connect, share, and learn today »

Design World
  • About us
  • Contact
  • Manage your Design World Subscription
  • Subscribe
  • Design World Digital Network
  • Control Engineering
  • Consulting-Specifying Engineer
  • Plant Engineering
  • Engineering White Papers
  • Leap Awards

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Design World

  • Home
  • Technologies
    • ELECTRONICS • ELECTRICAL
    • Fastening • joining
    • FLUID POWER
    • LINEAR MOTION
    • MOTION CONTROL
    • SENSORS
    • TEST & MEASUREMENT
    • Factory automation
    • Warehouse automation
    • DIGITAL TRANSFORMATION
  • Learn
    • Tech Toolboxes
    • Learning center
    • eBooks • Tech Tips
    • Podcasts
    • Videos
    • Webinars • general engineering
    • Webinars • Automated warehousing
    • Voices
  • LEAP Awards
  • 2025 Leadership
    • 2024 Winners
    • 2023 Winners
    • 2022 Winners
    • 2021 Winners
  • Design Guides
  • Resources
    • 3D Cad Models
      • PARTsolutions
      • TraceParts
    • Digital Issues
      • Design World
      • EE World
    • Educational Assets
    • Engineering diversity
    • Reports
    • Trends
  • Supplier Listings
  • Advertise
  • SUBSCRIBE
    • MAGAZINE
    • NEWSLETTER
We use cookies to personalize content and ads, to provide social media features, and to analyze our traffic. We share information about your use of our site with our social media, advertising, and analytics partners who may combine it with other information you’ve provided to them or that they’ve collected from your use of their services. You consent to our cookies if you continue to use this website.