Simulink | Quarc Library
This section manages data transfer between different targets, computers, or external smart sensors.
QUARC makes it easy to coordinate multiple controllers. You can run separate models on different machines and have them exchange data with minimal latency. Essential Blocksets to Know 1. HIL (Hardware-In-the-Loop)
[ Build Simulink Model ] ➔ [ Configure Code Generation ] ➔ [ Build & Connect ] ➔ [ Run in Real-Time ] Step 1: Initialize the Hardware Open a blank Simulink model. quarc library simulink
Configure the Watchdog panel in the HIL Initialize block. If your model crashes or communication drops, the watchdog instantly forces analog outputs to 0V, preventing runaway hardware.
Always place this at the top level of your model to define your hardware parameters globally. Essential Blocksets to Know 1
Type simulink in the MATLAB Command Window. Look for the library in the directory tree. Step 2: Configure the Hardware
The QUARC Library is the visual toolkit within Simulink that provides specialized blocks for hardware communication, data logging, signal processing, and device interfacing. Instead of writing complex C/C++ drivers for encoders, motors, or IMUs, users simply drag, drop, and configure QUARC blocks. Core Capabilities of QUARC If your model crashes or communication drops, the
The Quarc library offers several benefits, including:
(Quanser Real-Time Control) is a powerful rapid-prototyping software that integrates directly into Simulink to enable real-time communication, code generation, and hardware-in-the-loop (HIL) testing. It essentially acts as a bridge, allowing you to run Simulink models on physical hardware (like robots or control boards) with deterministic performance. Core Components of the QUARC Library
Solution: Every model interacting with hardware must contain this block. Ensure it is at the root level or properly scoped.






