Main Content


Scan for and update the list of peripherals connected to the target hardware

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



updatePeripheralInfo(hwObj) scans for webcams that are connected the NVIDIA® hardware. Use this function when the webcamlist property of the jetson or drive object is empty or when adding or removing USB webcams to the target hardware.


collapse all

You can add a USB camera to an NVIDIA Jetson™ platform and connect to the camera from the MATLAB® software to capture images.

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');

To display a list of USB cameras connected to the Jetson board, check the webcamlist property of the hwObj object.

ans =


To update the list of the cameras connected to the board, connect a USB camera to the target and run the updatePeripheralInfo function.

ans =

  1×1 cell array

    {'Microsoft® LifeCam Cinema(TM)'}

Create a webcam object, wcam using the name, or the index number of the webcam list and display the images captured from webcam in MATLAB, use the following commands.

wcam = webcam(hwObj)
img = snapshot(wcam);

Input Arguments

collapse all

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

Version History

Introduced in R2018b