Main Content

linux.getPILConfiguration

R2026b

Get PIL connection configuration for model

Since R2026b

Description

[tcpPort,target] = linux.getPILConfiguration(modelName) returns the processor-in-the-loop (PIL) connection configuration for the specified model, including the TCP port used for PIL communication and the target computer associated with the model.

example

Examples

collapse all

Configure the PIL connection for a model and then retrieve the configuration.

Set the PIL connection configuration for the model.

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

Get the PIL connection configuration for the model.

[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

Output Arguments

collapse all

TCP port for PIL communication, returned as a positive integer in the range [1, 65535].

Data Types: uint16

Target computer name, returned as a string scalar. The name identifies the selected target computer from the Linux Runtime Manager.

Data Types: string

Version History

Introduced in R2026b