News for hackers. Stuff that matters.

Show HN: Modeloop – Design and simulate discrete-time controllers in the browser

https://modeloop.app/

Hi HN! I’d like to share a new model-based design environment with anyone interested in trying it out. It’s free and you can start modeling in the browser without installing any desktop software.

It's called Modeloop and we've spent some years to build but we think it has a lot of interesting features.

DIAGRAMS

In the diagram editor, you can build control algorithms by combining basic blocks from the standard library and use finite state machines (FSMs) to define operating modes and the transitions between them. You can organize your diagram into nested subsystems and schedule different functions to run at different rates. For example, you could run a motor’s current loop at 10 kHz, its speed loop at 1 kHz and its diagnostics at 100 Hz.

You can also edit any model either graphically or as text. For example:

previous = UnitDelay(filtered_value, initial=20.0)

new_sample = 0.2 * raw

memory = 0.8 * previous

filtered_value = new_sample + memory

filtered = filtered_value

The model format is open, and models are saved as JSON, without obscure proprietary formats that lead to vendor lock-in. There’s also a built-in version control system that lets you commit your diagrams and push them to GitHub, for example.

ENGINE

Modeloop’s engine is written in Rust to give users maximum performance while minimizing wait times, especially during compilation and simulation. You can also write unit tests for specific parts of the model, create different scenarios, and view test coverage for the automatically generated code.

Modeloop supports both Model-in-the-loop and Software-in-the-loop simulations. The broader documentation is at https://www.modeloop.app/docs.

We’d love to hear your feedback on the product, the parts you love and especially what’s unclear or could be improved.

( no comments | on HN )

There are no comments yet.