getPILPort

Get the TCP/IP port number used by the PIL execution

Description

example

portNumber = getPILPort(hwObj) displays the TCP/IP port number used by the processor-in-the-loop (PIL) execution.

Examples

collapse all

You can check the port number used by PIL on an NVIDIA® Jetson hardware from the MATLAB® environment using the getPILPort method of the jetson hardware connection object.

To create a live hardware connection object, provide the host name or IP address, user name, and password of the target board.

hwObj = jetson('192.168.1.15','ubuntu','ubuntu');
getPILPort(hwObj);
ans =

       17725

Input Arguments

collapse all

Connection to a specific NVIDIA hardware board, specified as a jetson or drive object.

Use the jetson or the drive function to create this connection.

Output Arguments

collapse all

TCP/IP port number used by PIL, specified as a scalar.

Example: 17725

Data Types: double

Introduced in R2019a