QUARC supports complex communication protocols, allowing the Simulink model to interact with other systems or devices.
What are you trying to connect to (e.g., Q2-USB, Quanser AERO, or a custom board)?
Run models on Windows targets, specialized Quanser QPid/Q-Control boards, or embedded Linux devices like the Raspberry Pi. Core Blocks in the QUARC Library
Officially supports Windows and Linux (Ubuntu). No macOS support. Real-time execution on embedded Linux targets is possible but not as streamlined.
: Includes the XY Figure block, which offers better performance and multi-curve plotting compared to standard Simulink blocks. User Perspective & Limitations quarc library simulink
Use QUARC’s external mode to tune parameters (like PID gains) while the code is running on the hardware without recompiling. To help you get the most out of QUARC , let me know:
Easily maps inputs from USB joysticks, keyboards, or Xbox controllers to act as system inputs for human-in-the-loop simulations. 3. Step-by-Step Workflow: Creating a QUARC Model
Blocks that allow direct interaction with hardware sensors and actuators. The Immediate I/O
Ensure QUARC is installed and integrated with MATLAB/Simulink. Core Blocks in the QUARC Library Officially supports
: Enables online parameter tuning and real-time data monitoring directly within the Simulink interface while the model is executing on the target hardware.
QUARC is a superb teaching tool—students learn control theory in Simulink and see immediate physical results.
The HIL blockset is the core engine for physical I/O. It allows your Simulink model to read from sensors and write to actuators via data acquisition (DAQ) cards.
No more manual I/O coding. Just add QUARC blocks to your Simulink model and run directly on hardware. : Includes the XY Figure block, which offers
The HIL Initialize block cannot establish communication with the hardware. Solution: Verify physical USB/PCI connections and ensure the correct Quanser hardware drivers are installed via the device manager.
An excellent, high-performance real-time extension for Simulink—essential for anyone using Quanser hardware (e.g., QUBE, IP02, Aero) but too specialized and costly for general-purpose real-time tasks.
To use the library, ensure that QUARC Real-Time Control software is installed after MATLAB. If blocks are missing with a quarc_library error, you can run quarc_setup in the MATLAB Command Window to refresh the paths. For existing models, use the utility under the QUARC menu to resolve broken links from older versions. Quanser Lab Workstation Support from Simulink - MathWorks
Always place standard Simulink Saturation blocks immediately before your HIL Write blocks. This prevents sending dangerous over-voltage signals to your physical amplifiers and motors.
: Click the Monitor & Tune (or "Connect") button in the Simulink toolbar.