Modeloop as a Scilab Alternative for Control Design
Compare Modeloop with Scilab Xcos for discrete-time controller design, simulation, and C export. See how the workflows differ for numerical and plant studies.
Modeloop publishes this comparison independently of the Scilab project, which distributes Xcos. If you are evaluating a Scilab alternative for the Xcos controller-design workflow, both environments can model and simulate a discrete-time controller using block diagrams. The comparison covers that shared task. Scilab also covers general numerical computing, including scripting and linear-system analysis. See Xcos and Modeloop’s modeling workflow.
The same controller design task
Consider an illustrative motor-speed PI controller that updates every 1 ms. Use the same discrete PI equations, gains, initial integrator state, fixed-step schedule, and recorded target and measured speed inputs in each tool. Log the command at each step and apply the same checks for output limits and expected values. For C generation, use a configuration that includes Modeloop’s C export or an Xcos discrete-time Super Block that meets its generation requirements, respectively. This example defines the scope of the comparison. The feature descriptions come from the product documentation. See Modeloop execution, Modeloop C generation, and Xcos code generation.
How Scilab, Scicos, and Xcos are related
Scilab grew out of French research in computer-aided control system design. Inria and the École nationale des ponts et chaussées began developing Scilab in 1990, building on the earlier Basile system. The first public release followed in 1994. The project moved from Inria to a consortium, then to Scilab Enterprises and ESI Group. The development team joined Dassault Systèmes in 2022, and Scilab remains free and open source under the GPL. See the Scilab history and open-source project.
Scilab is the numerical computing environment. Its language lets control engineers represent linear systems, calculate time responses, and discretize a continuous-time model at a chosen sample period. See linear system representation and discretization.
Scicos emerged within that research as a way to model and simulate systems that combine continuous dynamics with discrete events. Ramine Nikoukhah developed its modeling formalism, drawing in part on work that extended the synchronous language SIGNAL to continuous-time dynamics. Xcos replaced Scicos in the main Scilab distribution with Scilab 5.2 in December 2009. The lineage is still visible today. Xcos is the graphical editor and uses the scicosim hybrid simulator. See the Inria history of Scicos, Scilab 5.2 release notes, release dates, and Xcos documentation.
What each simulator computes
For the controller task above, both tools execute the control calculation at the chosen sample period. Xcos uses event activation, and Modeloop uses a fixed time grid with periodic or event-triggered callbacks. A separate task, such as studying the motor’s current and speed between controller updates, calls for continuous plant dynamics. Xcos supports ordinary differential equation and differential-algebraic equation solvers for hybrid models, and can use Modelica-based physical components. See Xcos simulation settings and Modeloop’s execution model.
Modeloop currently advances simulation on a fixed, discrete time grid. You can use input scenarios for a controller-only test or represent the plant as a discrete approximation. The workflow makes the base step, sample periods, and execution order explicit. For continuous plant studies, Xcos exposes settings such as solver selection, error tolerances, and maximum integration step. See Modeloop simulation and Xcos solver settings.
From simulation to generated C
Xcos supports batch simulation from Scilab scripts, including changing diagram parameters between runs. For eligible discrete-time Super Blocks, Xcos can generate code for use in the diagram and for standalone use. Scilab scripts are useful when you want to combine parameter sweeps, numerical analysis, and simulation in the same environment. See Xcos batch simulation and Xcos code generation.
Modeloop organizes this work around a controller project. You can define input scenarios and expected responses, simulate the model in model-in-the-loop (MIL), and run the generated C in software-in-the-loop (SIL) to compare behavior under equivalent inputs. The C export provides initialization and execution interfaces for integration into firmware. Requirements management and project history are built into the same workspace. See Testing, Code Generation, and the product workflow.
Model files, source control, and text editing
Scilab’s source is open, and Xcos supports XML-based diagram files and .ssp packages. Scilab scripts can load and configure diagrams for automation. Modeloop stores its native models as versioned JSON documents, so a team can inspect the files with standard tools and keep them in Git. Its built-in semantic diff distinguishes a changed gain or connection from a block that moved on the canvas. The project can sync to GitHub. See Xcos file formats and Modeloop version control.
In Modeloop, MDL and the canvas are two ways to author the same model. You can inspect signal flow visually, then edit calculations or nested diagrams in MDL and apply the changes back to the canvas. Scilab’s scripting interface gives you a different kind of flexibility, including programmatically constructing or modifying an Xcos diagram. See Modeloop MDL and Xcos diagram scripting.
Running in the browser
Xcos comes with the Scilab desktop distribution. FOSSEE has also developed Xcos on Web, a separate project that brings core Xcos functionality to the browser. Modeloop was designed for browser use from the start. Its Rust runtime is compiled to WebAssembly and executes MIL simulation on the user’s machine in the browser. See Xcos on Web and Modeloop’s Rust simulation engine.
The choice for a discrete-time controller depends on how the team works. Xcos can fit a workflow built around Scilab scripts and numerical analysis. Modeloop can fit a workflow where the model, requirements, tests, and generated C are reviewed together. To see the Modeloop workflow, start with the editable Moving Average example.