In this lesson you will learn how to transfer data between the simulation platform and the host PC:
You will learn how to implement event handling.
You will learn how to print messages to the dSPACE Log.
You will learn how to implement exception handling to transfer data.
You will learn how to use dynamic variables to make data available on the simulation platform and on the host PC.
You will learn how to use host calls to exchange data between the simulation platform and the host PC.
There are different possibilities to transfer data from the simulation platform to the host PC. The methods used in this lesson are briefly compared in the following table:
None of these methods is suitable to implement a kind of capture.
Methods | Advantages | Disadvantages | Typical Use Case |
|---|---|---|---|
|
|
| Mainly used for debugging. |
Writing to dSPACE Log |
|
| Mainly used for logging. |
Exceptions |
|
| Used only to implement exception handling. |
Dynamic variables |
|
| Mainly used as user interface. |
Host calls |
|
| Mainly used for processing complex tasks. |
To check the learning results of the steps you executed and for further information, refer to Result of Lesson 3.
Working through this lesson will take you about 60 minutes.