How to Download and Install QUARC for MATLAB R2021a
QUARC is a software that allows you to design, develop, deploy and validate real-time applications on hardware using Simulink. QUARC generates real-time code directly from Simulink-designed controllers and runs it in real-time on the Windows target without writing a single line of code[^1^].
If you want to use QUARC with MATLAB R2021a, you need to download and install QUARC 2021, which is compatible with this version of MATLAB[^4^]. Here are the steps to do so:
Go to https://www.quanser.com/products/quarc-real-time-control-software/ and request a quote or a 30-day trial for QUARC 2021.
After you receive the license file and the download link from Quanser, save the license file in a convenient location such as \"My Documents\".
Download and run the QUARC 2021 installer. Follow the instructions on the screen to complete the installation.
Run the Configure Licensing tool by clicking on Start/All Programs/Quanser/QUARC/Configure Licensing. Make sure the Configure License Manager and Configure QUARC boxes are checked, and then click OK.
Browse to the location where you have saved the license file and select it. Click on Open.
Open MATLAB R2021a and change to the quarc subdirectory of the folder in which QUARC was installed, such as C:\\Program Files\\Quanser\\QUARC\\quarc. You can do this by typing the following command at the MATLAB prompt:
Type the following command in the MATLAB command window to configure QUARC for use with MATLAB:
You are now ready to use QUARC with MATLAB R2021a. You can find more information about QUARC features, system requirements, and documentation at http://quanser-update.azurewebsites.net/quarc/documentation/quarc_configuration.html.
How to Use QUARC with MATLAB R2021a
Once you have installed and configured QUARC for MATLAB R2021a, you can start using it to create and run real-time applications on hardware. Here are some basic steps to do so:
Create a new Simulink model or open an existing one. You can also use one of the many examples provided by QUARC, which are located in the quarc\\examples subdirectory of the folder in which QUARC was installed.
Add the blocks and subsystems that you need to design your controller or algorithm. You can use the standard Simulink blocks as well as the QUARC-specific blocks, which are available in the QUARC library. To open the QUARC library, type the following command at the MATLAB prompt:
Configure the target settings for your model. You can do this by opening the QUARC Target Settings dialog box, which is accessible from the QUARC menu in Simulink. In this dialog box, you can specify the target type, IP address, communication protocol, sample time, and other options for your model.
Build and download your model to the target. You can do this by clicking on the Build and Download button in the QUARC toolbar in Simulink. This will generate the real-time code from your model and transfer it to the target machine.
Start and stop your model execution. You can do this by clicking on the Start and Stop buttons in the QUARC toolbar in Simulink. You can also monitor and change the signals and parameters of your model using scopes, displays, sliders, switches, and other Simulink blocks.
You have now learned how to use QUARC with MATLAB R2021a. For more advanced topics, such as customizing your target hardware, creating custom blocks, using remote access, or debugging your model, please refer to the QUARC documentation at https://docs.quanser.com/quarc/documentation/index.html. 0efd9a6b88