Copy file from development computer to target computer
file_name from the development computer to
the default target computer.
object will be removed in a future release. See the release note for file system commands to
use instead. These commands use the
SimulinkRealTime.openFTP function and the functions for the MATLAB
Copy file from current folder on development computer to top folder on default target computer.
Copy file from current folder on development
computer to full path location on target computer
tg = slrt('TargetPC1'); SimulinkRealTime.copyFileToTarget(tg,'c:\xpcosc\data1.dat')
target_obj— Name of a target computer or a variable containing a target computer object
If the argument is a character vector or string scalar, the argument must contain the name assigned to a previously configured target computer.
If the argument is a variable containing an object, the object
must be a
SimulinkRealTime.target object representing
a previously configured target computer.
file_name— Name of a file in the current folder on the development computer
The file being copied must exist in the current folder on the development computer.
If the argument is a file name, the file is copied to the current
folder on the target computer, as indicated by the function
If the argument is a path name, the file portion of the path name is extracted as the development computer file name. The file is copied to the location indicated by the path name. The folder must exist on the target computer.