Main Content


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

Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.



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


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('jetson-board-name','ubuntu','ubuntu');
ans =


Input Arguments

collapse all

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

Output Arguments

collapse all

TCP/IP port number used by PIL, returned as a positive integer.

Example: 17725

Version History

Introduced in R2019a