Use the QUARC performance blocks (like Computation Time ) to check if your code is exceeding its step-size allocation. If your execution time exceeds your fixed-step size, a sample hit will be missed, causing a real-time violation. To help tailor this guide further, let me know: What specific hardware/DAQ card are you connecting to?
Establishes connections over TCP/IP, UDP, Serial (RS-232), or shared memory.
– The classic inverted pendulum problem serves as an excellent demonstration of QUARC’s capabilities. Using the QUBE-Servo 2 rotary inverted pendulum, for example, students can design balancing controllers, implement swing-up strategies, and even explore reinforcement learning-based control—all through the same Simulink/QUARC workflow.
– Quanser lab workstations, integrated with QUARC, enable interactive project-based learning in control systems, mechatronics, and robotics curricula. Students can design controllers in Simulink, test them in simulation, then deploy them to physical hardware—gaining hands-on experience with rapid control prototyping. Laboratory exercises cover topics from basic PID control to advanced concepts like inverted pendulum balancing, active suspension systems, and multi-agent collaborative control.
In modern control engineering, bridging the gap between theoretical mathematical models and physical hardware is a crucial hurdle. is a premier software platform designed specifically to bridge this gap, allowing engineers and researchers to convert MATLAB/Simulink models into real-time applications without writing manual code . At the heart of this power lies the QUARC Targets Library , a specialized set of Simulink blocks that allow for hardware-in-the-loop (HIL) testing, rapid control prototyping, and advanced data acquisition. quarc library simulink
Executes the Simulink model at a strict hardware-timed sampling rate, preventing jitter and data loss. 2. Communications
What are you connecting to?
Blocks designed to read Analog inputs (voltages), Digital inputs (switches), Encoder inputs (position sensors), and Other inputs (frequency/PWM).
The is a powerful extension for MATLAB and Simulink developed by Quanser . It bridges the gap between software simulation and physical hardware, allowing engineers, researchers, and students to rapidly prototype and deploy real-time control systems. By turning Simulink models into executable code that runs in real-time, QUARC eliminates the need for manual C/C++ coding for hardware interfacing. Use the QUARC performance blocks (like Computation Time
Features built-in blocks for SPI, I2C, PWM, TCP/IP, UDP, Serial (RS-232/485), and CAN bus communications.
Offers higher performance than standard Simulink XY graphs, allowing for complex plotting and debugging on-the-fly. Key Advantages of Using QUARC with Simulink Seamless Integration
Are you running your model on a or a remote real-time target ? Share public link
: Includes kinematic solvers and blocks for controlling specific robots like the Quanser QArm , Denso, and Kinova arms. Applications in Education and Research – Quanser lab workstations, integrated with QUARC, enable
QUARC is a superb teaching tool—students learn control theory in Simulink and see immediate physical results.
Establishes TCP/IP, UDP, or serial connections.
Choose the appropriate system target file based on your deployment platform. For development on the host computer, the quarc_win64.tlc target selects the Windows soft real-time target. For embedded deployment, targets like quarc_linux_pi_3.tlc generate code for Raspberry Pi 3 systems running Linux.
– Support a wide variety of data acquisition cards, including Quanser’s own Q4 and Q8 Hardware-in-the-Loop (HIL) boards, National Instruments PCI-6259, and many more.
✅ 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).