User`s guide
4 Verification
PIL tests do not run in real time. After each sample period, the simulation
halts to ensure that all data has been exchanged between the Simulink
software test harness and object code. You can then check functional
differences between the mo del and generated code.
PIL Block
The PIL cos imulation block is the Simulink software block interface to
PIL and the interface between the Simulink software plant model and the
executable application running on the processor. The Simulink software
inputs and outputs of the PIL cosimulation block are configured to match the
input and output specification of the PIL algorithm.
The block is a basic building block that enables you to perform these
operations:
• Select a PIL algorithm
• Build and downlo ad a P IL application
• Run a PIL cosimulation
The PIL block inherits the shape and signal names from the parent
subsystem, like those in the following example. This inheritance feature is
convenient for copying the PIL block into the model to replace the original
subsystem for cosimulation.
PIL Issues
• “Generic PIL Issues” on page 4-7
4-6