01/14/2025
Bosch Rexroth | App | Engineering

ctrlX AUTOMATION - Model Connect

Click here to vote for our Model Connect App! (only in German)

The Model Connect App serves as a mediator for the connection of ctrlX OS devices to powerful market toolchains for Model-Based Software Development (MBSD). Through the use of the ctrlX Data Layer these toolchains benefit directly from data feeds written by other ctrlX OS apps,  e.g. connecting fieldbus participants. With this architecture even use cases beyond MBSD, such as simulation, virtual commissioning and live condition monitoring are approachable - all with the powers of the connected tools.

A first and widely sought connection product is the integration of MathWorks Simulink® models from our ctrlX World Partner MathWorks®. It is possible to integrate not only Simulink® library elements and ctrlX Data Layer variables, but also MATLAB® functions/scripts into the model.

The Model Connect app can feed model inputs with data from other apps via the ctrlX Data Layer.

Why use Model-Based Software Development?

MBSD uses descriptive design languages to define system behavior and functionality to auto-generate control code. The code design process is eased through the use of models, which may be graphical or textual notations, such as UML diagrams, state charts, or block diagrams in simulation environments. The goal of MBSD is to improve the quality, efficiency, and maintainability of software development. It promotes the usage of templates and nested structures, as well as black-box thinking, allowing developers to focus on the functionality and behavior of the software instead of struggling with implementation details: a low-code software development alternative.

ctrlX OS Target for Simulink®

Dive into MBSD and the powers of MathWorks Simulink® through a Simulink® plugin targeting ctrlX OS devices, such as the ctrlX CORE. Check out the How-To on usability and user stories.

Generate C++ code from a Simulinkx model and deploy to a ctrlX OS device using Model Connect.

Key Features

  • A freely available MATLAB/Simulink® Support Package to model inputs and outputs from external components and ctrlX Data Layer variables. Also includes templates and samples. It can be found in the download section at the top of the sidebar.

  • Comfortable, automated, and deterministic deployment of C++ from MATLAB/Simulink® to ctrlX OS devices with the press of one button (requires MATLAB Coder and Simulink or Embedded Coder).

  • A runtime environment on the ctrlX OS device within the Model Connect App to compile, run, and manage multiple real-time models. Advanced "synchronous bundle" allows for harmonisation with scheduler.

  • A live and real-time data connection to manipulate and visualize the ctrlX OS behavior from MATLAB/Simulink® and from the Model Connect app.

What does working with Model Connect and Simulink® feel like?

Developing software is a continous process, also with MBSD. Therefore, we made the process to generate, deploy, compile, test, and view modeled control behavior as easy as possible: at the press of a button. This keeps developers focused on functionality and makes changes in models and submodels easy.

At the press of a button models from Simulinkx are running and explorable on the ctrlX OS device.

| NEW! | Real-time execution of FMUs on a ctrlX OS device

The Functional Mock-up Interface (FMI) defines a standardized interface that can be used to couple different simulation software. More than 200 simulation systems on the market currently support this standard, including open source tools such as openModelica. The direct execution of FMI 2.0 co-simulation FMUs on a ctrlX OS device offers the user significantly more tool freedom for implementing their own process chains for model-based software development. Functional Mockup Units (FMU) are files that contain a simulation model that complies with the FMI standard.

Currently the Model Connect app is available in two versions

The Basic License delivers a lightweight scope to model control systems with a limited scope of direct input into the model:  max. three new inputs and three existing Data Layer inputs per model. The executed model runs "freely" outside the scheduler scope. Model outputs are unlimited.

The functional scope of the Performance License is not limited. Any number of new and existing Data Layer inputs can be used per model. Furthermore, it can be synchronized with other ctrlX OS apps via the Scheduler. Model outputs are unlimited.

Prerequisites

  • From Bosch Rexroth: MATLAB/Simulink Support Package for ctrlX OS
    NOTE: Please refer to the download section at the top of the sidebar 

  • From MathWorks®: Simulink®
    _____________________________

  • From MathWorks® (optional): MATLAB® R2022a or higher to include scripts & functions

  • From MathWorks® (optional): Toolboxes to generate code

    • MATLAB® Coder

    • Simulink Coder - or - Embedded Coder

    • C Compiler for Simulink Coder - or - Embedded Coder

Support

Forum ctrlX WORKS
Documentation Model Connect App 

Related Links

 

1
1 reply

Latest published/updated articles

Types
ctrlX CORE Apps
Categories
Engineering