Simulink.architecture.importAndSelect

Import and select target architecture for concurrent execution environment for model

Syntax

  • Simulink.architecture.importAndSelect(model,Architecture) example
  • Simulink.architecture.importAndSelect(model,CustomArchitectureDescriptionFile) example

Description

example

Simulink.architecture.importAndSelect(model,Architecture) imports and selects the built-in target architecture for the concurrent execution environment for the model.

example

Simulink.architecture.importAndSelect(model,CustomArchitectureDescriptionFile) imports and selects the architecture from an XML-based architecture description file.

Importing and selecting target architectures requires that the associated support packages or hardware is installed on your computer.

Examples

expand all

Import and select a different architecture

Import and select the sample architecture to the model sldemo_concurrent_execution.

sldemo_concurrent_execution
Simulink.architecture.importAndSelect('sldemo_concurrent_execution','Sample Architecture')

Import and select a custom architecture

Import and select the custom architecture defined in the XML file custom_arch.xml. This example requires you to create a custom_arch.xml first.

sldemo_concurrent_execution
Simulink.architecture.importAndSelect('sldemo_concurrent_execution','custom_arch.xml')

Input Arguments

expand all

model — Modelstring

Model to import architecture to, specified as a string.

Data Types: char

Architecture — Target architecture namestring

Target architecture name to import into the concurrent execution environment for the model, specified as a string. Possible target names are:

PropertyDescription

'Multicore'

Single CPU with multiple cores

'Sample Architecture'

Example architecture consisting of single CPU with multiple cores and two FPGAs. You can use this architecture to model for concurrent execution.

'Simulink Real-Time'

Simulink® Real-Time™ target

'Xilinx Zynq ZC702 evaluation kit'

Xilinx® Zynq® ZC702 evaluation kit target

'Xilinx Zynq ZC706 evaluation kit'

Xilinx Zynq ZC706 evaluation kit target

'Xilinx Zynq Zedboard'

Xilinx Zynq ZedBoard™ target

Data Types: char

CustomArchitectureDescriptionFile — Custom target architecture fileXML file

Custom target architecture file name, in XML format, that describes a custom target for the concurrent execution environment for the model, specified as a string giving the XML file name.

Example: custom_arch.xml

Was this topic helpful?