Contenido principal

getDisplayEnvironment

Get display environment value that NVIDIA hardware uses

Description

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

displayValue = getDisplayEnvironment(hwObj) shows the display environment value that generated applications use on the NVIDIA® hardware. For example, if you deploy an application that uses the image function onto NVIDIA hardware, the application displays the image in the environment that getDisplayEnvironment returns.

example

Examples

collapse all

Create a jetson object. Check the display environment that the object uses. In this example, the live connection uses display environment 0.0.

hwObj = jetson;
getDisplayEnvironment(hwObj);
ans =

    '0.0'

Input Arguments

collapse all

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

Output Arguments

collapse all

Display environment value, returned as a character vector in the format 'X.Y', where X is the display number and Y is the screen number.

If you have used the setDisplayEnvironment function before, the displayValue that the function returns is the most recent value that you set. If you have not set the display environment value before, the default value is '1.0'.

Example: '0.0'

Version History

Introduced in R2019a

expand all