주요 콘텐츠

linux.setPILConfiguration

R2026b

Set PIL connection configuration for model

Since R2026b

Description

linux.setPILConfiguration(modelName,Name=Value) sets the processor-in-the-loop (PIL) connection configuration for the specified model using one or more name-value arguments to set specific configuration settings. For example, to set the TCP port to 12345, specify Port=12345.

example

Examples

collapse all

Configure the TCP port and target computer for PIL simulation on the model myModel.

linux.setPILConfiguration("myModel",Port=12345,Target="LinuxTarget3");

Verify the configuration by getting the current configuration.

[tcpPort,target] = linux.getPILConfiguration("myModel")
tcpPort =
  uint16
    12345

target =
    "LinuxTarget3"

Input Arguments

collapse all

Simulink model name, specified as a character vector or string scalar. The model must be loaded and configured with configuration parameter Hardware board set to one of these values:

  • Embedded Coder Linux Docker Container

  • Embedded Coder Linux Docker Container-ARM64

Example: "myModel"

Data Types: char | string

Name-Value Arguments

collapse all

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: linux.setPILConfiguration("myModel",Port=12345)

TCP port for PIL communication, specified as a positive integer in the range [1, 65535]. The PIL simulation uses this port for data and protocol communication with the target computer.

Example: Port=12345

Target computer name, specified as a character vector or string scalar. The target must be a valid target computer from the Linux Runtime Manager.

Example: Target="LinuxTarget3"

Data Types: char | string

Version History

Introduced in R2026b