Mechanical Simulation Technical Memo
755 Phoenix Drive, Ann Arbor MI, 48108, USA
Phone: 734 668-2930 • Fax: 734 668-2877 • Email: info@carsim.com carsim.com
1 / 59 June 2020
dSPACE RT Guide
Introduction ............................................................................................................ 2
System Requirements ............................................................................................. 2
Datasets Installation ............................................................................................... 3
Running a Simulation ............................................................................................. 4
Build and Download a Simulink Model .......................................................... 6
Run a Simulation Without dSPACE ControlDesk ........................................... 8
Run the Simulation Again ................................................................................ 9
Run a Simulation with dSPACE ControlDesk ............................................... 10
Summary: Methods to Run a VS Model on a dSPACE Target ..................... 10
Setting RT Run Conditions .................................................................................. 12
Start/Stop Time Setting .................................................................................. 12
Writing Outputs for Post-Processing ............................................................. 13
Example: ControlDesk NG on DS1005/1006 ...................................................... 14
Dataset to Describe the Connection to dSPACE ........................................... 14
Load and Run the Model from ControlDesk NG ........................................... 15
Example: Multiprocessor Board DS1006MP ....................................................... 16
Set up Model with DS1006MP Hardware Environments .............................. 17
Communication Between the Node Settings ................................................. 24
Automation Without ControlDesk ....................................................................... 26
Using the VS Batch Runs Tool ...................................................................... 26
Control with Windows COM ......................................................................... 26
Run ControlDesk without the VehicleSim GUI ................................................... 27
Method 1: Add an Icon to the ControlDesk Toolbar ..................................... 27
Method 2: Create a Custom Button ............................................................... 30
Live Animation..................................................................................................... 33
User Settings .................................................................................................. 34
Network Connection Delays .......................................................................... 35
dSPACE SCALEXIO ........................................................................................... 35
Specify Hardware and Path ............................................................................ 35
Build the Simulink model .............................................................................. 36
Build the Simulink model in ConfigurationDesk .......................................... 39
Load and Run the Model in ControlDesk NG ............................................... 40
Operations from the Run Control Screen ....................................................... 43
Automation .................................................................................................... 44
Tutorial: Creating an FMU for dSPACE SCALEXIO ......................................... 45
Prepare a Folder for Tutorial Files ................................................................. 46
Create a New Dataset Example in CarSim .................................................... 46
Set up dSPACE ConfigurationDesk .............................................................. 49
Transfer the Parsfile from CarSim to the SCALEXIO Target ....................... 55
Run a Model from dSPACE ConfigurationDesk ........................................... 56
Running Other VehicleSim Example Models ...................................................... 57
Running Parallel Solvers Example Models .......................................................... 58