getFile - Transfer file from NVIDIA hardware to host computer - MATLAB (original) (raw)
Main Content
Transfer file from NVIDIA hardware to host computer
Syntax
Description
getFile([hwObj](#mw%5F7ae85b8c-5eeb-4f8e-8a81-ece932a4336b%5Fsep%5Fmw%5Fbcc65819-faa5-4997-9bca-35a8da7d894a),[source](#mw%5Ff1b6dc6c-d9a2-44d6-a3ad-79aacb87a85c))
copies the specified file from the NVIDIA® hardware to the MATLAB® current folder. Path names and wildcards can be used to specify the source file. If the specified file exists in the current folder, getfile
overwrites the file.
getFile([hwObj](#mw%5F7ae85b8c-5eeb-4f8e-8a81-ece932a4336b%5Fsep%5Fmw%5Fbcc65819-faa5-4997-9bca-35a8da7d894a),[source](#mw%5Ff1b6dc6c-d9a2-44d6-a3ad-79aacb87a85c),[destination](#mw%5F0c7aac4e-bea0-4a55-8652-832842bc52de))
copies the file to a destination path and optional file name. Path names and wildcards can be used to specify the file.
Examples
You can copy a file, such as .profile
, from the NVIDIA hardware to the MATLAB current folder on your host computer.
getFile(hwJetson,'/home/ubuntu/.profile')
Input Arguments
Connection to a specific NVIDIA hardware board, specified as a jetson or drive object.
Path and file name on the NVIDIA hardware, specified as a character vector. You can use either the absolute path from the root folder, or the relative path from the present working folder. Use Linux® path and file naming conventions. The default path is~/
.
Example: '.profile'
Example: '/home/ubuntu/.profile'
Path and name of file on host computer, specified as a character vector. If not specified, getFile
uses the MATLAB current folder and the source file name. Use the naming conventions of the operating system on the host computer. This function does not create folders. Folders in the path must exist.
Example: 'C:\Users\myusername\Desktop'
Version History
Introduced in R2018b