Quarc Library Simulink May 2026
QuArc Library for Simulink — Detailed Review
Workflow Summary: How It Works
- Design: Create a control algorithm using Simulink blocks and the Quarc library (e.g.,
HIL Initialize, HIL Read Encoder, HIL Write Analog).
- Simulate: Verify the logic using standard Simulink simulation tools.
- Build: Click the "Build" button. Quarc automatically generates C code (via the Real-Time Workshop), cross-compiles it, and downloads it to the target hardware or prepares it to run on the local Windows machine.
- Run & Tune: Start the model. Use the Soft Scope to monitor signals and change gains in real-time to tune the physical response.
Part 1: What is the QUARC Library?
Part 4: A Practical Step-by-Step Workflow
Let’s walk through a typical workflow of using QUARC Library for Simulink.
3.2. Hardware I/O Drivers
This is the most utilized section of the library. Quarc provides pre-written drivers for a vast array of hardware data acquisition (DAQ) cards and sensors. This includes:
- Data Acquisition: Interface blocks for Quanser DAQ cards (e.g., Q2-USB, Q8-USB) and third-party cards (e.g., National Instruments).
- Robotics: Specific blocks for mobile robots (QBot 2/3/4) and manipulators (e.g., PUMA, LYNX).
- Sensors and Actuators: Blocks for encoders, analog outputs (DAC), digital inputs/outputs, and PWM generation.
Example Minimal Model Structure (conceptual)
- Source: Reference signal block
- Controller: PID or state-space controller
- Actuator interface: Quarc analog out / PWM block
- Sensor interface: Quarc encoder / analog in block
- Monitoring: Quarc scope or External Mode blocks
- Init/Term: Quarc initialization and shutdown blocks