This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

updatePeripheralInfo

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

Syntax

updatePeripheralInfo(hwObj)

Description

example

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.

Examples

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('192.168.1.15','ubuntu','ubuntu');

Check the webcamlist property of the hwObj object to dsiplay a list of USB cameras connected to the Jetson board.

hwObj.webcamlist
ans =

     []

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

updatePeripheralInfo(hwObj);
hwObj.webcamlist
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);
figure();
imagesc(img);
drawnow;

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.

Introduced in R2018b