In the world of control systems and robotics, the transition from a Simulink simulation to a working physical prototype is often fraught with complexity. This is where the (by Quanser) becomes an indispensable tool.
Officially supports Windows and Linux (Ubuntu). No macOS support. Real-time execution on embedded Linux targets is possible but not as streamlined.
: QUARC acts as an extension of Simulink, allowing you to run models in real-time on various targets—including 32-bit and 64-bit Windows and various embedded platforms—directly from the Simulink Development Environment . quarc library simulink
Quarc is hardware-agnostic to a degree, though it is heavily optimized for Quanser hardware environments.
– When using HIL blocks, ensure the watchdog timeout is set appropriately for your application—too short a timeout can cause premature simulation termination. In the world of control systems and robotics,
– On Windows targets, using a hardware timebase (supported by many Quanser DAQ cards) significantly improves jitter performance, especially for sample times faster than two milliseconds.
: Click the Start button. You can now tune gain parameters in real-time or view data on Simulink scopes while the hardware moves. No macOS support
For applications involving a high-speed control loop and a separate graphical user interface (GUI), run two distinct QUARC models. Connect them using the Shared Memory protocol in the Communications library to isolate critical control code from UI rendering delays. Conclusion
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