Products & Services Solutions Academia Support User Community Company

Learn more about xPC Target   

put - Copy file from host PC to target PC

Syntax

MATLAB command line

put(file_obj,file_name)
file_obj.put(file_name)

Arguments

file_obj

Name of the xpctarget.ftp object.

file_name

Name of the file to copy to the target PC.

Description

Method of xpctarget.ftp objects. Copies a file from the host PC to the target PC. file_name must be a file in the current folder of the host PC. The method writes file_name to the target PC disk.

put might be slower than the get operation for the same file. This is expected behavior.

Examples

Copy the file data2.dat from the current folder of the host PC to the current folder of the target PC FTP object f.

put(f,'data2.dat')  

or

fsys.put('data2.dat')

See Also

xPC Target file object methods dir and get (ftp).

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS