setDisplayEnvironment - Set the display environment value used for redirecting the display on the
target - MATLAB ([original](https://in.mathworks.com/help/coder/nvidia/ref/setdisplayenvironment.html)) ([raw](?raw))
Set the display environment value used for redirecting the display on the target
**Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.
Syntax
[setDisplayEnvironment(hwObj,displayValue)](#d126e12396)
Description
setDisplayEnvironment([hwObj](#mw%5F6ae0db2c-6004-4323-8d36-1a59d00ea0fa%5Fsep%5Fmw%5Fbcc65819-faa5-4997-9bca-35a8da7d894a),[displayValue](#mw%5F7de8d6b6-09ef-40cc-861d-081f7f5a46b1))
sets the display environment value used for redirecting the output to a specific display connected to the NVIDIA® target board. This value is valid until the hardware object is live.
Examples
For an NVIDIA Jetson™ target platform, you can configure the display where the output is redirected by using the setDisplayEnvironment
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
setDisplayEnvironment(hwObj,'0.0');
Input Arguments
Connection to a specific NVIDIA hardware board, specified as a jetson or drive object.
The display environment value must be a character vector in the formatdisplaynumber.screennumber
. To identify the value of the display environment on your platform, use the $DISPLAY
environment variable. For example, the terminal command echo $DISPLAY
prints the display environment value of the system.
Example: '0.0'
Version History
Introduced in R2019a
See Also
Functions
- jetson | drive | openShell | system | getPdkorSdkVersion | setupCodegenContext | updatePeripheralInfo | getLinuxVersion | getDisplayEnvironment