Learn Modeloop
Design discrete-time control algorithms with block diagrams, simulate and test them, and generate embedded C for review and integration.
Getting Started
Introduction
Graphical causal modeling, simulation, model testing, verification, and code generation for control algorithms and embedded software.
Quickstart
Open the Moving Average example, inspect its diagram, run the included scenario, and compare the response with expected values.
Version Control
Create project commits, review semantic history, restore safely, work with branches, publish qualified baselines, and optionally sync with GitHub.
Core Concepts
Blocks
Define model behavior with blocks, configure their parameters, and connect their ports to establish signal flow.
Signals
Connect blocks with signals, work with data types, shapes and broadcasting, and inspect values during simulation.
Model Execution
Understand simulation time, sample periods, execution order, feedback, and communication between rates.
Building Models
Model Hierarchy
Structure is optional but powerful: how to organize growing models with callbacks and containers, and when a flat diagram is all you need.
Block Reference
The complete reference of Modeloop blocks: ports, parameters, and behavior for every block, organized by category.
Unit Delay
Retain an input value and output it on the next execution.
Conditional
Run a different diagram for each condition. Create branches, define their ports, and wire them on the canvas.
Container
Organize a diagram behind named ports. Define the interface in Properties, wire the blocks inside, and connect the Container to its parent.
Callback
Execute model logic periodically or in response to an event.
State Charts
Event-driven logic with finite state machines: states, transitions, guards, actions, hierarchical superstates, and how charts execute within the execution model.
Parameters & Data
Centralized parameter management: $references, workspace and model data contexts, user-defined types, and calibration data in generated code.
MDL
Edit models as text, discover sections and block arguments with suggestions, and apply changes to the diagram.
Modeling Guidelines
Conventions and best practices for models that stay readable, reviewable, and correct as they grow: structure, naming, types, feedback, and rates.
Simulate, Test & Generate
Model-in-the-Loop Simulation
Run model-in-the-loop (MIL) simulation for a discrete-time controller. Set the base step, apply input scenarios, and inspect signal traces in PlotLab.
Software-in-the-Loop Testing and Scenarios
Test generated embedded C with software-in-the-loop (SIL). Reuse model-in-the-loop scenarios and compare outputs using the same inputs, timing, and tolerances.
Formal Verification
Understand Modeloop's numerical safety analysis and model-to-HLIR equivalence checks, including their assumptions, results, and limits.
Embedded C Code Generation
Generate embedded C from a control-system model. Inspect the generated source and headers, integrate callbacks with your scheduler, and test the compiled C.
C Symbols
Which C functions, variables and types you get from your model, how they are named, and what happens when two names clash.