updatePeripheralInfo - Scan for and update the list of peripherals connected to the target
hardware - MATLAB ([original](https://in.mathworks.com/help/coder/nvidia/ref/updateperipheralinfo.html)) ([raw](?raw))
Main Content
Scan for and update the list of peripherals connected to the target hardware
Syntax
Description
updatePeripheralInfo([hwObj](#mw%5F6474a62e-1f67-4739-9289-c161dc24423a%5Fsep%5Fmw%5Fbcc65819-faa5-4997-9bca-35a8da7d894a))
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
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 thehwObj
object.
To update the list of the cameras connected to the board, connect a USB camera to the target and run the updatePeripheralInfo
function.
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;
Version History
Introduced in R2018b
See Also
Functions
- jetson | drive | openShell | system | getPdkorSdkVersion | setupCodegenContext | getL4TVersion | getLinuxVersion