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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.