Create CarSim project
Create an empty folder - CarSim project for example on the PC (The path of the folder can't include any Chinese characters). Open the CarSim, then click
Browse for another database... to select the created folder. Ensure that the
CarSim Solver for Linux-RT is in the License Settings.
Import NI RT model by
File >> Import Parsfile (Any Export Type)...
Select CPAR file of NI-RT to import.
Install RT Solver
If this is your first time using CarSim on your Linux RT target, you should install the RT solvers to the target through
Tools >> Install RT Solvers to Target...
Configure the following parameters. Target Computer Name or IP Address is the IP address of the Linux RT that you can find in the NI MAX. Login User ID and Login password are the user name and password of the Linux RT.
After the configuration, click Install. If the following error is triggered, you should create the above path /usr/CarSim/2019.1 on the Linux RT manually.
After the directory is created, repeat the steps of Install Vehicle Solvers to Target. Finally, it shows that RT solvers have been installed on the target.
Configure CarSim for NI VeriStand
Select
Transfer to NI-RT Target in the drop-down list of Models.
Select LinuxRT: VeriStand - Baseline in the drop-down list of dataset selection.
Click Dataset - Linux RT: VeriStand - Baseline to do the configuration. The Freq. of Math model should align with the PCL of the Linux RT. Defining the import channels and export channels that you want to show in the VeriStand.
After the configuration, click Home back to the main page. Then click Build to create a so file for VeriStand. If the configuration is perfect, the following message shows. The vs_nivs.so file is located at the same path of the above VeriStand project file.
Click Send, then Open to open the VeriStand project - CarSim.nivsproj. You should import the vs_nivs.so file to the Simulation Model if it is the first time you open the VeriStand project. Finally, you can deploy the VeriStand system definition file to run the CarSim.