Model-based development and code generation

Short development time

Simulation and code generation

Online tuning and debugging

In-built project documentation

X2C®: Model-based development and code generation of real time control for microprocessors. Developed by LCM – the mechatronic engineering company.

Download factsheet (English/German)
  • X2C supports both Scilab/Xcos and Matlab/Simulink for building graphical control models.
  • Control schemes are quickly and easily built by connecting predesigned blocks — no coding is needed.
  • Within X2C, a variety of block libraries for Scilab/Xcos and Matlab/Simulink are available. In addition, custom blocks can be created as well.
  • Based on the created model, C-code is automatically generated, which can then be compiled within the target’s integrated development environment (IDE).
  • Generated code is easily readable.
  • The “X2C Scope”, a virtual oscilloscope, is an intuitive tool for online data visualisation and debugging.
  • The “X2C Communicator” allows application transfer to a target via serial, CAN or Ethernet communication. Furthermore, online parameter update from Simulink or Xcos is possible.
  • Within the simulation environment, created algorithms can be validated without running them on the target.
  • A report can be generated automatically with one mouse click.
  • X2C enables automated control with Matlab, Scilab or Python scripts.
  • X2C supports both Scilab/Xcos and Matlab/Simulink for building graphical control models.
  • Control schemes are quickly and easily built by connecting predesigned blocks — no coding is needed.
  • Within X2C, a variety of block libraries for Scilab/Xcos and Matlab/Simulink are available. In addition, custom blocks can be created as well.
  • Based on the created model, C-code is automatically generated, which can then be compiled within the target’s integrated development environment (IDE).
  • Generated code is easily readable.
  • The “X2C Scope”, a virtual oscilloscope, is an intuitive tool for online data visualisation and debugging.
  • The “X2C Communicator” allows application transfer to a target via serial, CAN or Ethernet communication. Furthermore, online parameter update from Simulink or Xcos is possible.
  • Within the simulation environment, created algorithms can be validated without running them on the target.
  • A report can be generated automatically with one mouse click.
  • X2C enables automated control with Matlab, Scilab or Python scripts.

Intuitive development

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 quickly to master.

Intuitive development

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 quickly to master.

Extensive Libraries

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.

read more –>

Extensive Libraries

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.

read more –>

Communicator

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.

Communicator

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.

Scope

The “X2C Scope” is a convenient visualisation 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.

Scope

The “X2C Scope” is a convenient visualisation 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.

X2C in combination with Scilab is a very powerful solution that helps me and my team every day to improve motor control algorithms and reduce the time to market dramatically. With X2C we can generate production code and combine it with existing libraries to use the full flexibility of Microchips 16 bit and 32 bit microcontrollers.

Christoph Baumgartner

Worldwide Function Group Team Leader for Motor Control , Microchip Technology Inc.

We are using X2C in both teaching and research as a tool for quick implementation of real-time control algorithms in hardware. The MATLAB version is easy to start using and provides core functionality for generating code from graphical models. Matrix calculations are difficult to implement, however it is possible to work around that limitation.
Maksim Sokolov

Doctoral Candidate, Aalto University - Department of Electrical Engineering and Automation

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.
Wolfgang Gruber

Associate Professor, Johannes Kepler University Linz - Institute of Electrical Drives and Power Electronics

Die Österreichische Forschungsförderungsgesellschaft FFG -  Logo
Bundesministerium für Verkehr, Innovation und Technologie -  Logo
Bundesministerium für Wissenschaft, Forschung und Wirtschaft -  Logo
Forschungsland Oberösterreich -  Logo
UAR Innovation Network - Logo
COMET – Competence Centers for Excellent Technologies -  Logo
Europa -  Logo