Main Content

linux.getXCPServiceConfiguration

R2026b

Retrieve XCP service configuration status for model

Since R2026b

Description

[enabled, tcpPort, target] = linux.getXCPServiceConfiguration("modelName") returns the XCP service configuration for the specified model, including the service status, the TCP port used for communication, and the target computer associated with the model.

example

Examples

collapse all

Configure the XCP service for the model myModel and then retrieve the configuration.

Enable the XCP service and set the TCP port and target computer.

linux.setXCPServiceConfiguration("myModel", Enabled=true, TCPPort=12345, Target="LinuxTarget3");

Retrieve the XCP service configuration for the model.

[enabled, tcpPort, target] = linux.getXCPServiceConfiguration("myModel")
enabled =
  logical
    1

tcpPort =
  uint16
    12345

target = 
    "LinuxTarget3"

Input Arguments

collapse all

Simulink model name, specified as a character vector or string scalar. The model must be configured with the Embedded Coder Linux Docker Container or Embedded Coder Linux Docker Container-ARM64 hardware board.

Example: "myModel"

Data Types: char | string

Output Arguments

collapse all

XCP service configuration status, returned as a logical value. The value is true if the XCP service is enabled for the model and false otherwise.

Data Types: logical

TCP port for XCP connections, returned as a positive integer in the range [1, 65535]. The XCP service accepts connections on this port. The port is also included in the generated ASAP2 file.

Data Types: uint16

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

Data Types: string

Version History

Introduced in R2026b