target
PackageBefore you can run processor-in-the-loop (PIL) simulations, you must set up connectivity between Simulink® and your target hardware. The connectivity enables the PIL simulation to:
Build the target application.
Download, start, and stop the application on the target hardware.
Support communication between Simulink and the target hardware.
Use one of these workflows.
Workflow | When to use |
---|---|
target package with
rtiostream API | Use this workflow if your target application has large I/O requirements that need high-bandwidth communication. For more information, see Use rtiostream API for PIL Target Connectivity. |
target package with debugger | Use this workflow if:
For more information, see Use Debugger for PIL Target Connectivity. |
rtiostream
API for PIL Target ConnectivityTo provide PIL connectivity between Simulink and the target hardware, you can use the target
Package
with the rtiostream API. In this example, your
development computer is the target hardware.
To provide PIL connectivity between Simulink and the target hardware, you can use the target
Package
with a debugger, for example, the GNU® Debugger.
This section provides a pseudocode example of
target.DebugIOTool
debugger abstraction. Use a
target.DebugIOTool
object to:
Control the lifetime of an application running in the debugger.
Automate common debugger actions. For example, applying breakpoints and continuing execution from a paused state.
Read and write to memory that the application uses.
For interactions with the debugger, you can use MATLAB external language interfaces to APIs, which the debugger vendor supplies.