Main Content

Create block

SIL or PIL block creation

Model Configuration Pane: Code Generation / Verification

Description

Generate a SIL or PIL block

Settings

None (default) | SIL | PIL

Default: None

None

Do not generate SIL or PIL block.

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 your development computer. With this block, you can test the 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 test the 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.

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

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

Version History

Introduced in R2007a