Quarc Library Simulink ((install))
For advanced robotics and computer vision applications, QUARC provides blocks to interface with media devices.
QUARC HIL Read blocks often output raw integer types (like int32 for encoder counts). Use a Data Type Conversion block or multiply by a calibration gain to convert these to standard double or single floating-point numbers before doing math operations.
It is worth noting the distinction between QUARC and MathWorks’ own Simulink Real-Time (formerly xPC Target). While both platforms enable real-time execution of Simulink models, QUARC offers several distinguishing advantages: support for Windows as a real-time target (not just dedicated real-time kernels), the ability to use standard Simulink sink blocks for visualization, a richer set of device and communications blocks, and integration with Quanser’s extensive ecosystem of educational and research hardware. However, QUARC is primarily tailored to Quanser’s hardware ecosystem and may not support all DAQ cards that Simulink Real-Time supports.
While development often happens on Windows, QUARC can target various environments, including: Windows (Hard Real-Time) Linux (on Raspberry Pi or other boards) Embedded platforms like NI myRIO or ELVIS III 🚀 Getting Started quarc library simulink
Establishes communication channels using TCP/IP, UDP, shared memory, or serial connections (RS-232).
– Provide convenient functionality beyond Simulink’s standard continuous blocks, including nonlinear state-space systems and extended Kalman filters.
Under , select a fixed-step solver (e.g., ode4 or ode1 ) and set an appropriate fundamental sample time (typically 0.001 seconds for a 1 kHz loop). Step 2: Adding QUARC Infrastructure It is worth noting the distinction between QUARC
– QUARC’s support for simultaneous model execution and dynamic reconfiguration makes it well-suited for multi-agent systems. Multiple QBot 2 units or QBall UAVs can be coordinated from a single supervisory Simulink model, enabling research in collaborative control, fault-tolerant control, sensor fusion, and fleet maintenance.
– QUARC can run and connect to multiple models on a single target at the same time, enabling complex distributed control systems and supervisory control architectures.
Sends and receives raw bytes, matrices, or structured data over an active connection. While development often happens on Windows, QUARC can
This occurs if your model's computational complexity is too high for the chosen sample rate. If your control loop takes 1.2 milliseconds to compute but your sample time is set to 1 millisecond, QUARC will throw an overrun error. Solution: Increase your sample time or optimize your Simulink blocks.
Built-in support for SPI, I2C, CAN bus, Modbus, and OPC UA.
Configure complex peripherals (like SPI, I2C, PWM, and DAQ cards) using standard Simulink blocks.