DEP — DEVlink Engineering PlatformUser Guide

Build Your First System

In this tutorial you build a System from scratch: a Gain model feeding a First Order lag. You set an input, check and run the System, and read the response. It takes about 15 minutes. The values shown are what DEP produces for these settings.

The finished System: Gain → First Order, connected with a direct signal.
The finished System: Gain → First Order, connected with a direct signal.

What you learn

  • Create a project and initialise its System.
  • Add executable models from the catalogue.
  • Connect an output port to an input port.
  • Set an input value, then use Check, Run, Results and Live debug.
  • Stop and release a session so that you can edit again.

1. Create the project

  1. New ProjectChoose File → New Project (Ctrl+N). In Create DEP Studio project, choose a folder you own, for example Documents\DEP Projects, and name the file My first system.rbsproj. Select Save.
  2. Open System EngineeringSelect System → System Engineering. The panel shows Build your test system.
  3. Create the SystemType My first system in System name and select Create system in this project. DEP makes a project backup first.
Build your test system: name the System and create it in this project.
Build your test system: name the System and create it in this project.

The canvas is now empty and shows 0 components. The profile buttons show MIL selected.

An empty System. “Choose an existing asset” lets you add a prepared model or software asset.
An empty System. “Choose an existing asset” lets you add a prepared model or software asset.

2. Add a Gain

  1. Open the catalogueSelect Add component in the Build toolbar.
  2. Find the modelThe dialog lists executable assets under the logical component types. Type gain in the search box Search models, software or networks.
  3. Add itSelect Gain (NativeModel · Executable model), then Add to system. The status line reports PASSED · add.
Add component: logical component types at the top, executable models below.
Add component: logical component types at the top, executable models below.
Gain selected: “Creates an execution instance using the existing model service.”
Gain selected: “Creates an execution instance using the existing model service.”

Logical component or executable asset? The upper part of the dialog, with Logical component, Type and Add logical component, adds a placeholder block, such as an ECU you will integrate later. A placeholder is Design only and does not execute. The list below it adds executable models. For this tutorial, use the list.

3. Add a First Order lag

Select Add component again, search for first order, select First Order and Add to system. Close the dialog and select Fit to show both blocks.

Two components, both “Model · MIL active”. Each shows its input port on the left and output port on the right.
Two components, both “Model · MIL active”. Each shows its input port on the left and output port on the right.

4. Connect the components

  1. Pick the sourceClick the output ● port of Gain.
  2. Pick the destinationClick the ● input port of First Order.

A line labelled SIGNAL appears, Connections (1) appears in the canvas toolbar, and the status line reports PASSED · connect. If you select First Order, its input now shows Connected · From Gain / output and can no longer be edited: a connected input always takes its value from its source.

After clicking Gain's output port, DEP waits for the destination port.
After clicking Gain's output port, DEP waits for the destination port.

To set a fixed value, do not connect anything to the input. Type the value in Component Properties instead. Connecting a component to its own input is not allowed.

5. Set the input value

  1. Select GainClick the Gain block. Component Properties opens on Commands & inputs.
  2. Enter 10In the input field type 10 and select Save. The status line reports PASSED · value.
Commands & inputs: each editable input has its own Save button.
Commands & inputs: each editable input has its own Save button.

Model settings holds the parameters, here gain = 1. Results shows the last calculated outputs. Values must be saved before you run.

6. Check

Select Check in the Execute bar. The System check sheet reports Ready for a local model run, the execution order Gain → First Order, and that physical outputs remain locked. Close the sheet.

System check passed.
System check passed.

7. Run and read the results

  1. RunKeep Ticks per run at 100 and select Run. With the default 10 ms step, 100 ticks are 1 s of logical time. The Live Session Debug panel opens and shows 100 / 100 committed ticks.
  2. ResultsClose Live Session Debug, then select Results. Run results lists every sample: Gain / output = 10 from the first tick, and First Order / output rising 0.2, 0.396, 0.588, … towards 10. It reaches about 8.7 after 1 s.
Live Session Debug during and after the run.
Live Session Debug during and after the run.
Run results: segment, time, component output and value for every recorded sample.
Run results: segment, time, component output and value for every recorded sample.

The session is now paused. The top bar shows MIL · paused · 1.00 s with a Stop button, and Run has become Continue. Select Continue to run 100 more ticks, or Step to advance one tick.

8. Stop, change and run again

  1. Release the sessionWhile a session exists, inputs are locked (Stop the current session to edit values.). Select Reset & release session in the Execute bar. The status line reports PASSED · release-session · stopped.
  2. Change somethingFor example, set Gain's gain in Model settings to 2 and save.
  3. Run againSelect Run. Gain now outputs 20, and the lag rises towards 20.

9. Save

Your changes are already stored in the project. Choose File → Save Project (Ctrl+S) to make sure every draft is written.

Next steps