Create block

Description

Generate a SIL or PIL block

Category: Code Generation > Verification

Settings

Default: None

None

SIL or PIL block not generated.

SIL

Generate a SIL block that represents a top-model or subsystem.

If you select this option, the software creates and opens an untitled model with a SIL block. The SIL block contains an S-function, through which the software runs compiled object code on the host computer. With this block, you can verify the behavior of source code generated from top-model or subsystem components.

If the subsystem is an export-function subsystem, the software creates a Model block with Simulation mode set to Software-in-the-loop (SIL).

PIL

Generate a PIL block that represents a top-model or subsystem.

If you select this option, the software creates and opens an untitled model with a PIL block. The PIL block contains an S-function, through which the software runs cross-compiled object code on a target processor or instruction set simulator. With this block, you can verify the behavior of object code generated from top-model or subsystem components.

If the subsystem is an export-function subsystem, the software creates a Model block with Simulation mode set to Processor-in-the-loop (PIL).

To control the way code compiles and executes in the target environment, use Target Connectivity API.

Command-Line Information

Parameter: CreateSILPILBlock
Type: character vector
Value: 'None' | 'SIL' | 'PIL'
Default: 'None'

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics