Quarc Library Simulink [2025-2026]

For advanced education and research, QUARC includes icons representing Quanser physical plants (e.g., the Rotary Pendulum, Ball and Beam, 2-DOF Helicopter). These are not virtual models; rather, they map directly to sensors and actuators on those specific plants. You drag the "Quanser Rotary Pendulum" block, connect your controller, and QUARC automatically handles the encoder-to-angle conversion and voltage-to-torque scaling.

Set the solver type to a fixed-step solver (typically ode3 or ode4), specify the sample time to match your control requirements, and set the stop time to “inf” for continuous operation. QUARC supports both single-tasking and multi-tasking execution modes, with multi-tasking enabling independent threads for different sample rates.

Establishes TCP/IP, UDP, or serial connections between models or external applications. quarc library simulink

Sends debug messages from a real-time target back to the MATLAB command window. 3. Multimedia Blockset

Standard Simulink excels at "offline" simulation. You provide inputs, run the model over a time span, and analyze outputs. QUARC enhances this by introducing . When you use QUARC blocks, you can "Build" and "Run" your Simulink diagram directly on a target machine (Windows or Linux) with strict timing constraints (e.g., a 1 kHz control loop). For advanced education and research, QUARC includes icons

Native drivers for Quanser plants, sensors (encoders, IMUs), actuators, and data acquisition cards (e.g., QPIDe, Q8-USB). Also supports third-party boards via generic I/O blocks.

Traditional real-time control workflows often involve a disjointed process where a controller is designed and simulated in one environment, then painstakingly recoded into a low-level language like C for a DSP or microcontroller. This process is error-prone, time-consuming, and breaks the creative flow of algorithm development. Set the solver type to a fixed-step solver

✅ Interface with a wide range of data acquisition cards (National Instruments, etc.), sensors, actuators, and Quanser plants (like the QUBE-Servo, Rotary Pendulum, and AERO).

The platform also supports fieldbus technologies such as EtherCAT, multimedia devices including Kinect sensors, and specialized robotics platforms like the QBot 2 autonomous ground robot. The QBot 2, for example, integrates QUARC with MATLAB and Simulink to enable users to develop controllers on a host computer and cross-compile them for the embedded Gumstix target on the robot.