Double-click it, select your board type from the dropdown menu, and ensure the channel configurations match your physical wiring. Step 3: Designing the Loop
QUARC supports an extensive range of hardware interfaces, making it a versatile solution for diverse applications. The data acquisition support includes Quanser’s proprietary HIL boards (such as the Q4, Q8, QPID), third-party DAQ cards from manufacturers like National Instruments, and USB-based interfaces like the Q2-USB.
When you open the Simulink Library Browser after installing QUARC, you will find a dedicated library. This library is organized into functional categories that handle everything from hardware interfacing to communication protocols. 1. Hardware-in-the-Loop (HIL) API Blocks quarc library simulink
Set your solver options to a solver and define your sampling time (e.g., 0.001 seconds for a 1 kHz control loop). Step 4: Build and Run
Sends commands to physical actuators, motors, analog outputs, and digital outputs. 2. Communications Blocks Double-click it, select your board type from the
When using communications blocks, use shmem:// (shared memory) for processes on the same PC to get the lowest possible latency.
your model while it runs on the hardware. You can change controller gains or parameters in the Simulink diagram and see the results instantly on physical hardware. 2. Rapid Control Prototyping (RCP) When you open the Simulink Library Browser after
Establishes client-server relationships between models or external applications.
QUARC is engineered for , ensuring that the sampling rate of the controller is strictly maintained and that no samples are missed. On platforms like Windows, the QUARC Win32 Target assigns the highest possible priority to a model's real-time code to minimize processing delays for real-time events. For users who need to simulate real-time behavior without full code generation for simple testing, the System Timebase block allows a normal Simulink simulation to be run in very soft real-time, but it is strongly advised against using this for actual hardware control as it can be unstable.