Skip to Content
Banner Model based development and code generation

X2C

Model-based development and code generation of real time control for microprocessors.

X2C® provides a powerful environment for model-based design of control algorithms, automatic C-code generation and real-time communication with embedded targets. It integrates seamlessly with MATLAB/Simulink and Scilab/Xcos and supports the full development workflow.

YouTube

By clicking on "Load Content" you consent to loading external content from YouTube on this page.

Model-Based Control Engineering Made Easy

  • Model-Based Development Without Hand Coding
    X2C integrates seamlessly with Scilab/Xcos and MATLAB/Simulink. Control models are built via drag & drop using predefined or custom blocks, and clean, readable C-code is automatically generated for the target IDE.
  • Intuitive Visualization, Debugging & Communication
    With the virtual oscilloscope X2C Scope, signals can be monitored and debugged online. The X2C Communicator enables application transfer and online parameter tuning via serial interface, CAN, or Ethernet.
  • Simulation, Reporting & Automation
    Algorithms can be validated through simulation, automatic reports can be generated with a single click, and development or testing workflows can be automated using MATLAB, Scilab, or Python scripts.
Foto Gruber JKU
X2C is reliable, efficient and easy to use, reducing the effort of DSP code generation to a minimum. This makes it the preferred tool for my students to implement their control systems in hardware. The time-to-implementation is outstandingly short, especially for more complex control systems, like (sensorless) vector controlled drives or bearingless motors. Moreover, the X2C team always provides swift, competent and helpful support. Univ.-Prof. DI Dr. Wolfgang Gruber Associate Professor | Johannes Kepler University Linz – Institute of Electrical Drives and Power Electronics

X2C Features & Capabilities

For developing control algorithms, model-based design using X2C brings a number of clear advantages:

  • It shortens the development time, as the model is built by modular and reusable blocks instead of manual coding.
  • The blocks included with X2C are already tested, reducing the probability of errors significantly.
  • The intuitive user interface and a convenient interconnection of tools make X2C easy to understand and quick to master.

Within X2C, extensive libraries for Xcos and Simulink (Basic, General, Math, Control, MotorControl, StateControl) are available.

  • If custom blocks are required, they can easily be created using the “X2C Block Generator”.
  • The block implementation (either fixed point 16/32 or floating point 32/64) is effortlessly defined using a drop-down menu. A mixture of various implementations within a model is possible.
  • The chosen implementation is not restricted by the target’s hardware architecture.

The “X2C Communicator” is the central tool of X2C, which provides a variety of helpful functions:

  • It automatically generates C-code based on the graphical model.
  • The “X2C Communicator” establishes a connection with the target via serial, CAN or Ethernet communication.
  • The application can be transferred onto the target with a single mouse click.
  • Furthermore, the “X2C Communicator” allows effortless online tuning and debugging.

The “X2C Scope” is a convenient visualization tool for real time monitoring system signals in an oscilloscope-like environment.

  • Block input and output signals, global variables or even memory addresses can be monitored.
  • No recompiling of the software is required to change the monitored signals — all changes in the settings can be made at runtime.
  • All functionalities known from an oscilloscope are available, including various sampling and trigger modes.
  • To ease interpretation of physical signals greatly, monitored signals can be converted into physical quantities by setting the channel’s own gain and offset.

The “X2C Execution Time Estimator” predicts how long your model takes on the target – before a single line of code is
flashed.

  • Execution cycles, times and CPU load are estimated for various processors at once.
  • The estimate is based on execution cycles measured on the real targets during the automated block tests.
  • The sample time and the worst-case CPU load show at a glance whether the model fits on a processor – at its maximum
    clock or at the clock your board runs at.
  • The list of cycles per block shows where optimizing pays off, e.g. a slower sample time or a fixed-point
    implementation.
Peter Dirnberger
Your contact for X2C

Peter Dirnberger

Teamlead E-Drives
image description
Back to top