Quarc Library Simulink -

Drag an block into your model to capture positional feedback from your plant.

The QUARC library for Simulink acts as a bridge, enabling rapid control prototyping and hardware-in-the-loop (HIL) testing by allowing users to run Simulink models in real-time on physical hardware. This article explores the core features, advantages, and applications of the QUARC library, designed to accelerate research and development in academia and industry. What is the QUARC Library for Simulink?

– QUARC supports models with multiple sample rates, executing each rate in its own thread with appropriate priority levels. This means faster sample rates are not limited by the computational load of slower tasks, enabling complex, multi-rate control systems that were previously challenging to implement. quarc library simulink

– QUARC’s System Timebase block allows running a model in very soft real-time without code generation, useful for initial testing of logic and host device interaction. However, Quanser explicitly warns that this block should never be used for controlling actual hardware, as model execution may pause unpredictably.

This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later. Drag an block into your model to capture

QUARC provides an communications module that allows the Simulink diagram on your host computer to communicate with the real-time code running on a target computer. This enables powerful capabilities like online parameter tuning , where you can change block parameters (e.g., PID gains) in your Simulink model and have them update in the running controller in real-time. It also allows you to connect Simulink scopes and displays to visualize live signals as the model executes on the target, providing immediate feedback.

: This is arguably the most essential category for hardware interaction. It contains blocks that provide direct access to various data acquisition cards, allowing your Simulink model to read from sensors and write commands to actuators. What is the QUARC Library for Simulink

Beyond standard Simulink scopes, QUARC provides specialized visualization tools.

Under , select a fixed-step solver (e.g., ode4 or ode1 ) and set an appropriate fundamental sample time (typically 0.001 seconds for a 1 kHz loop). Step 2: Adding QUARC Infrastructure

The Stream blocks in Quarc allow a Simulink model running on the target hardware to communicate with a "Host" application running on a PC.