Skip to main content

Generating Code Consistent with Simulink Simulation for Aperiodic Execution on a Target Hardware Powered by a Free RTOS

  • Conference paper
Mechatronics 2013

Abstract

This paper presents concepts for implementing a variable step scheduled code on a low cost hardware using automatically generated code from Simulink running on a Free RTOS powered hardware. For models, which use a varying computing step, implementing variable step scheduler, instead of the default automatically generated fixed step scheduler, can improve algorithm performance. Concept and principles for creating Simulink model for code generation, which behaves the same way as generated code does, are explained in details. Previously described approach for automatically generated code from Simulink which implements variable step simulation is demonstrated using simple algorithm, running on a Cerebot MX7cK hardware.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Schlett, M.: Trends in embedded-microprocessor design. Computer 31(8), 44–49 (1998)

    Article  Google Scholar 

  2. Thate, J., Kagy, R., Jackey, R., Theyyunni, R., et al.: Methods for Interfacing Common Utility Services in Simulink Models Used for Production Code Generation. SAE Technical Paper 2009-01-0155 (2009), doi: 10.4271/2009-01-0155

    Google Scholar 

  3. Vlachy, D., Zezula, P., Grepl, R.: Control unit architecture for biped robot. In: Recent Advances in Mechatronics, International Conference on Mechatronics (2007), doi:10.1007/978-3-540-73956-2_2, WOS:000251017700002

    Google Scholar 

  4. MathWorks, Simulink Coder (2013), http://www.mathworks.com/products/simulink-coder/

  5. Thate, J., Kagy, R., Jackey, R., Theyyunni, R., et al.: Methods for Interfacing Common Utility Services in Simulink Models Used for Production Code Generation. SAE Technical Paper 2009-01-0155 (2009), doi: 10.4271/2009-01-0155

    Google Scholar 

  6. Scaife, N., Caspi, P.: Integrating model-based design and preemptive scheduling in mixed time- and event-triggered systems. In: Proceedings of 16th Euromicro Conference on Real-Time Systems, ECRTS 2004, June 30-July 2, pp. 119–126 (2004), doi:10.1109/EMRTS.2004.1311013

    Google Scholar 

  7. FreeRTOS - Market leading RTOS (Real Time Operating System) for embedded systems supporting 33 microcontroller architectures, http://www.freertos.org (accessed May 12, 2013)

  8. Vahid, F., Gajski, D.D.: Specification partitioning for system design. In: Proceedings of the 29th ACM/IEEE Design Automation Conference, Anaheim, California, United States, June 8-12, pp. 219–224 (1992)

    Google Scholar 

  9. Dillaber, E., Kendrick, L., Jin, W., Reddy, V.: Pragmatic Strategies for Adopting Model-Based Design for Embedded Applications. SAE Technical Paper 2010-01-0935 (2010), doi: 10.4271/2010-01-0935

    Google Scholar 

  10. Grepl, R., Lee, B.: Model Based Controller Design for Automotive Electronic Throttle. In: Recent Advances in Mechatronics: 2008-2009, 8th International Conference on Mechatronics, Luhacovice, Czech Republic (2009), WOS:000277076900036

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to V. Lamberský .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer International Publishing Switzerland

About this paper

Cite this paper

Lamberský, V., Križan, J., Andreev, A. (2014). Generating Code Consistent with Simulink Simulation for Aperiodic Execution on a Target Hardware Powered by a Free RTOS. In: Březina, T., Jabloński, R. (eds) Mechatronics 2013. Springer, Cham. https://doi.org/10.1007/978-3-319-02294-9_13

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-02294-9_13

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-02293-2

  • Online ISBN: 978-3-319-02294-9

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics