DEP — DEVlink Engineering PlatformUser Guide

Model Designer

Model Designer is DEP's block-diagram editor. You draw a model from native blocks such as gains, integrators, switches and lookup tables, check it, and prepare it as an executable implementation the System can run. You can also export it as an FMU for other tools. Open it with System → Model Designer, or with Open in Model Designer in Component Properties.

Model Designer workflow: configure, Check model, Prepare for System, Verify in System; optional FMU export Configureblocks, parameters,timing and units+ Block Check modelcompiler and FMIeligibilityCheck model Prepare for Systembuilds a newexecutable versionPrepare for System Verify in Systemselect it and runCheck / scenariosVerify in System Export FMU · FMI 2/3 co-simulation or model exchange
Every model change follows the same four steps. The status line of the designer reminds you: Configure → Check model → Prepare for System → Verify in System.

Before you start

RequirementWhat you need
EditionDEP Engineer or higher (model.native.author; FMU export: fmi.export). See Licensing and Editions.
ProjectAn open project. To use the model, a System in which you will add or replace a component.
Model Engineering with the BMS reference model: block library on the left, the model in the centre, the inspector on the right (partly scrolled).
Model Engineering with the BMS reference model: block library on the left, the model in the centre, the inspector on the right (partly scrolled).
AreaContents
ToolbarUndo, Redo, the Activity selector (Native Models, Software / FMI / model catalog, SSP Composition), the model badge (BMS editable reference · Saved), + Block, Delete, Check model, Prepare for System, Timing, parameter sets and dependencies, Verify in System, Save Model, More.
Native Block LibraryCreate model, the list of Project models, Search blocks and the block groups.
Native Model DesignerThe canvas, with zoom, Fit, Arrange model and Center model, and a status line such as Draft changed. Check and prepare this revision before execution.
InspectorProperties of the selected block.
Further panelsProject Explorer, Native DEP → FMU Export, Diagnostics. Show them from the Panels menu.

Steps

Create or open a model

  • Select a model under Project models to open it.
  • Expand Create model, type a New native model name and create an empty model. Templates are also available: Create vehicle dynamics, Create aircraft dynamics, Create PMSM / inverter and Create mapped drive.
  • From System Engineering, select a component and choose Open in Model Designer. Built-in models without a retained graph (for example Gain) explain that they are edited in Component Properties instead.
  • From Library Center, create an editable copy of a reference model and select Open copy in Model Designer.

Add blocks

GroupBlocks
Ports & sourcesInput, Output, Constant, Parameter
MathGain, Sum, Product, Saturation, DeadZone, RateLimiter
ContinuousIntegrator, ThresholdIntegrator, TransferFunction, StateSpace
DiscreteUnitDelay, Memory, Derivative, PID
Logic & routingSwitch, Relay, Compare, Logic, Mux, Demux, BusCreator, BusSelector
Tables & hierarchyLookup1D, Lookup2D, Subsystem, Scope, Terminator

Expand a group and click a block to add it, or use + Block. Input and Output blocks become the model's ports when it is used in a System.

Edit on the canvas

  • Connect: press a block's output port (right side). The canvas shows Connecting from <block> · select an input port. Then click an input port (left side) of another block. Port names such as u1, u2, sel and y are shown next to the ports.
  • Context menu: right-click a block for Properties, Parameters, Duplicate and Delete.
  • Select a block to edit it in the inspector. Move it by dragging, or with the arrow keys.
  • Delete removes the selection. Ctrl+D duplicates it. Ctrl+Z and Ctrl+Y undo and redo.
  • Arrange model lays the diagram out automatically. Center model centres it.

Set block properties

The inspector shows Block properties for the selected block, for example Compare · editable DEP native block:

FieldMeaning
NameDisplay name on the canvas.
KindThe block type.
Block parametersDepend on the kind, for example Operation for Compare (ge, gt, le, lt, eq, ne), the gain value, saturation limits or table data.
Scalar typeFloat64 — executable. Int64 and Boolean are authoring-only.
UnitAn SI or engineering unit. Units are checked when the model is connected in a System.
Sample time [s]Optional block period, an integer multiple of the base sample time.
Description, Block IDDocumentation and identifier.

Timing, parameter sets and dependencies

Timing, parameter sets and dependencies.
Timing, parameter sets and dependencies.
  • Base sample time (s): the fixed step of the model, for example 0.02. Block periods must be integer multiples of this step. Review the numerical error before you change it.
  • Parameter sets: enter a Parameter-set name and select Capture parameter set. This saves the values of all scalar Parameter, Constant and Gain blocks. Choose a Saved parameter set and select Apply to draft to restore it, or Remove parameter set. Applying a set changes the draft only. Save and Prepare to create a new executable. Undo restores the previous draft.
  • Referencing models: lists other models that use this one. Pinned references need an explicit review when their source changes. Existing System instances keep their prepared artifact.

Check, prepare and verify

  1. Save ModelThe badge changes from Unsaved to Saved. Ctrl+S saves the whole project.
  2. Check modelValidates the complete graph and its export capabilities. A passed check reports that the compiler and FMI 2 CS eligibility checks passed and that the model has not executed. Highlighted blocks show design issues: Correct the highlighted design issues before compiler checking or preparation.
  3. Prepare for SystemBuilds a new executable version of the model (Building executable model…). Existing System components keep using their previous version until you select the new one.
  4. Select the new versionIn System Engineering, select the new implementation (Implementation & replacement) and press Check.
  5. Verify in SystemOpens Scenarios & validation so that you can run the System with the new version.
After Check model: the compiler and FMI 2 CS eligibility checks passed; the model has not executed.
After Check model: the compiler and FMI 2 CS eligibility checks passed; the model has not executed.

Versions

More → Rename model renames the model. Save as New Version keeps the current version and creates a new one (dialog Name new model version → Create version). Systems that pinned the old version keep it until you replace it. Save Project and Save As… are also in this menu.

Export an FMU

Open the Native DEP → FMU Export panel (Panels menu), choose a profile and select Export selected native model:

  • FMI 2 Co-Simulation
  • FMI 2 Model Exchange
  • FMI 3 Co-Simulation
  • FMI 3 Model Exchange
  • FMI 3 Scheduled Execution

DEP builds the FMU (Building FMU…) and reports Exported · <path> · SHA-256 …, or Export failed · …. Specialised models (battery, drive, PMSM, aircraft, vehicle) are built through Prepare for System as FMI 2 co-simulation models instead. The PMSM / inverter designer can also export its model as an FMU (next section). FMUs that DEP builds from C sources implement the full FMI 2.0 function set.

PMSM / inverter designer

Select Create PMSM / inverter under Create model, or open a PMSM model, to work in the PMSM drive designer. It models a permanent-magnet synchronous motor and its inverter in rotor-flux d/q coordinates, with bidirectional shaft rotation. The Electric drive — torque and regeneration starter project uses it.

SettingChoices and meaning
Model configurationCombined PMSM + inverter, PMSM motor — terminal d/q voltage inputs, or Standalone inverter — external current feedback.
Inverter representationAveraged voltage-command inverter (default communication period 100 µs), or PWM switching — six sampled gate inputs. The switching inverter needs a 1 µs communication period and runs only in isolated logical-time System execution.
Command input (combined model, averaged inverter)External d/q voltage controller, or Torque request with reference current controller. With a torque request, a built-in reference current loop (id = 0) drives the plant from a signed torque request and the DC supply. You set its proportional and integral gains and its current limit.
Parameter groupsMotor electrical parameters (pole pairs, phase resistance, d/q inductance, flux linkage), Thermal parameters, Shaft and initial state, the inverter parameters, and the Model validity envelope. The envelope is a simulation validity bound, not a protection controller: exceeding it rejects the step.
FMI export profileFMI 2 Co-Simulation or FMI 3 Co-Simulation. Under Export and interfaces you can rename the ports to match your controller. Direction, scalar type and SI units follow the model's equations.

Check the model, prepare it for the System, and verify it with scenarios as for any other model.

Battery models

Battery models from the library, such as the cell-resolved electrothermal battery, open in a dedicated battery designer. There you can add and remove cells, set capacity and initial SOC, and set the pack structure under Pack settings: Series groups (S) and Parallel cells per group (P), for example a 6S2P pack of 12 cells. You can split the pack into named modules with Add module. The heading shows the result, for example Battery pack · 6S2P · 12 cells.

Results

  • A saved model shows Saved in its badge and appears under Project models.
  • A prepared model is a new executable version that you can select in System Engineering or add with Add component.
  • An exported FMU is written to the path you chose; the report Exported · <path> · SHA-256 … gives its hash. Keep it with the FMU.
  • Whether the model behaves correctly is shown only by running it: use Verify in System and scenarios.

Limits

  • Only Float64 executes. Int64 and Boolean are authoring-only.
  • Native fixed-grid execution integrates continuous states with forward Euler at the base sample time.
  • Check model and Prepare for System never change a running System.
  • Export is fail-closed: a model that does not pass all checks is not exported.
  • PMSM: the motor parameters are constant; magnetic saturation and iron losses are not modelled. The averaged inverter does not show switching ripple. The PWM switching inverter runs only in isolated logical-time System execution.

Troubleshooting

SymptomUsually meansAction
Correct the highlighted design issues before compiler checking or preparation.The highlighted blocks have design issues.Fix the highlighted blocks and select Check model again.
Export failed · …The model does not pass all export checks.Run Check model and fix every finding, then export again.
The System still runs the old behaviourThe new version was prepared but not selected.Select it in Implementation & replacement and press Check.
Open in Model Designer says the model is edited in Component PropertiesA built-in model without a retained graph.Edit its values in Component Properties.