Main Content


Transfer file from BeagleBone Black hardware to host computer



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


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


collapse all

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


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.


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