Main Content

getFile

Transfer file from BeagleBone Black hardware to host computer

Add-On Required: This feature requires the MATLAB Support Package for BeagleBone Black Hardware add-on.

Description

getFile(bbb,source) copies the specified file from the BeagleBone® Black hardware to the MATLAB® current folder. Wildcards are supported.

example

getFile(bbb,source,destination) copies the file to a destination path and optional file name.

example

Examples

collapse all

You can copy a file, such as .profile, from the BeagleBone Black hardware to the MATLAB current folder on your host computer.

getFile(bbb,'/home/bbb/.profile')

You can use a wildcard to copy any matching file or files from the BeagleBone Black hardware to your host computer. You can specify the path of a destination folder. The folder must previously exist.

getFile(bbb,'/home/bbb/*.png','C:\Users\myusername\Desktop')

Input Arguments

collapse all

BeagleBone Black connection created using beaglebone, specified as an object.

Path and file name on the BeagleBone Black 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 present working folder is /home/username/.

Example: '.profile'

Example: '/home/bbb/.profile'

Example: '/home/bbb/.pro*'

Data Types: char

Path and name of file on host computer, specified as a character vector. If not specified, getFile uses the MATLAB current folder and the current file name. Use the naming conventions of the operating system on the host computer. This function does not create new folders. Folders in the path must previously exist. Optional.

Example: 'C:\Users\username\Desktop'

Data Types: char

Version History

Introduced in R2015a