Home » Strategy » Academia : School Simulator

Quarc Library Simulink !!top!! 🎁 No Login

Understanding the QUARC Targets Library for Simulink QUARC Real-Time Control Software is a powerful tool by that transforms

models into real-time applications without requiring manual code writing. While Simulink is typically used for simulation, the QUARC Targets Library

adds specialized blocksets that allow these models to interact directly with hardware in real-time. Core Components of the QUARC Library

The QUARC library introduces several unique blocksets designed for high-performance control and communication: Hardware-in-the-Loop (HIL) Blocks quarc library simulink

: These allow you to interface with data acquisition (DAQ) cards. A key feature is the ability to swap out the physical hardware for a model by changing a single parameter in the block. Communications Blockset

: This set enables models to talk to each other or external devices using protocols like TCP/IP, UDP, Serial, or Shared Memory. It uses Universal Resource Identifiers (URIs)

to define protocols, making it easy to switch communication methods by simply updating a string. Asynchronous Thread Blocks Understanding the QUARC Targets Library for Simulink QUARC

: Unlike standard Simulink models that are strictly periodic, QUARC allows you to create non-periodic threads

that run asynchronously for tasks like event-driven code or background communications. Advanced Plotting : Includes the XY Figure block

, which outperforms standard Simulink graphs and can be used to drive axes within a custom MATLAB GUI. Key Features and Workflow QUARC Real-Time Control Software - Quanser Stream Blocks The Stream blocks in Quarc allow

QUARCTM is the most efficient way to design, develop, deploy and validate real-time applications on hardware using Simulink®. QUARC Targets Library - Unleashing the Power of QUARC


Stream Blocks

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

  • Host Interface: You can create a "Gauge" or "Scope" interface in Simulink on your laptop that reads data in real-time from the robot via TCP/IP.
  • Parameter Tuning: Users can change PID gains or reference signals in the Simulink model on the host PC, and Quarc updates the parameters on the target hardware instantly without recompiling the code.

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

Who Should Use It?

| Use Case | Recommendation | |--------------|--------------------| | Academic control labs with Quanser plants | ✅ Highly recommended | | Research in real-time control / HIL | ✅ Strong fit | | Industry using Quanser hardware | ✅ Good, but costly | | Hobbyist / maker projects | ❌ Overkill & expensive | | Generic real-time with NI/ADwin/Arduino | ❌ Look at Simulink Desktop Real-Time or Speedgoat |