Strathprints Home | Open Access | Browse | Search | User area | Copyright | Help | Library Home | SUPrimo

Benchmarking and optimisation of Simulink code using Real-Time Workshop and Embedded Coder for inverter and microgrid control applications

Roscoe, A. J. and Blair, S. M. and Burt, G.M. (2009) Benchmarking and optimisation of Simulink code using Real-Time Workshop and Embedded Coder for inverter and microgrid control applications. [Proceedings Paper]

[img] PDF - Published Version
Download (6Mb)
    [img]
    Preview
    PDF - Submitted Version
    Download (383Kb) | Preview

      Abstract

      When creating software for a new power systems control or protection device, the use of auto-generated C code via MATLAB Simulink Real-Time Workshop and Embedded Coder toolboxes can be a sensible alternative to hand written C code. This approach offers the benefits of a simulation environment, platform independence and robust code. This paper briefly summarises recent experiences with this coding process including the pros and cons of such an approach. Extensive benchmarking activities are presented, together with descriptions of simple (but non-obvious) optimisations made as a result of the benchmarking. Examples include replacement of certain Simulink blocks with seemingly more complex blocks which execute faster. "S functions" are also designed for certain key algorithms. These must be fully "in-lined" to obtain the best speed performance. Together, these optimisations can lead to an increase in execution speed of more than 1.4x in a large piece of auto-generated C code. An example is presented, which carries out Fourier analysis of 3 signals at a common (variable) frequency. The overall speed improvement relative to the baseline is 2.3x, of which more than 1.4x is due to non-obvious improvements resulting from benchmarking activities. Such execution speed improvements allow higher frame rates or larger algorithms within inverters, drives, protection and control applications.

      Item type: Proceedings Paper
      ID code: 33367
      Notes: Bpk72 Times Cited:0 Cited References Count:9
      Keywords: power system measurements power system control power system protection , power electronics, motor drives , inverters, Electrical engineering. Electronics Nuclear engineering
      Subjects: Technology > Electrical engineering. Electronics Nuclear engineering
      Department: Faculty of Engineering > Electronic and Electrical Engineering
      Related URLs:
      Depositing user: Pure Administrator
      Date Deposited: 16 Sep 2011 15:06
      Last modified: 08 Mar 2014 04:08
      URI: http://strathprints.strath.ac.uk/id/eprint/33367

      Actions (login required)

      View Item

      Fulltext Downloads: