Transfer a file from a specified SoC board to the current MATLAB folder on the host computer.
Create a Xilinx® processor hardware object and connect to the processor on-board the
Xilinx SoC board.
p = xilinxsoc('192.168.1.101', 'root', 'root');
Use the getFile function to transfer a file located in the file
path filePath specified with the file name
exampleFile.txt to the current MATLAB folder.
getFile(p, "filePath/exampleFile.txt")
The file exampleFile.txt is now transferred to your current
folder.
Transfer a file from a specified SoC board to the specified folder on
the host computer.
Create a Xilinx processor hardware object and connect to the processor on-board the
Xilinx SoC board.
p = xilinxsoc('192.168.1.101', 'root', 'root');
Use the getFile function to transfer a file located in the file
path filePath specified with the file name
exampleFile.txt to the Documents folder on your
host computer located in the file path C:/User/.
Hardware processor object that represents the connection from MATLAB to the processor on a specific SoC hardware board, specified as a xilinxsoc
object or intelsoc
object.
Path and name of file on the SoC board that you want to transfer to your host
computer. You can use either the absolute path from the root folder, or the relative
path from the your home directory.
Example: "~/exampleFile.txt"
Example: "/home/user/exampleFile.txt"
Path of folder or file on the host computer where you want to transfer the file. If
destination is the path to a folder, the file is copied inside that
folder with the original file name. If destination is the path to a
file, the file is copied with the new file name. This function does not create new
folders, so folders in the path must already exist.
If no
destination is specified, the current MATLAB folder is used.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.