User`s guide
7 Working with Target PC Files and File Systems
7-8
2 Type
f.get('data.dat');
This retrieves the file and saves that file to the variable data. This content
is in the xPC Target file format.
Copying a File from the Host PC to the Target PC
You can place a copy of a file from the host PC by using xPC Target methods on
the host PC for the
xpctarget.ftp object.
Use the method syntax to run an
xpctarget.ftp object method. The syntax
method_name(ftp_object, argument_list) can be replaced with
ftp_object.method_name(argument_list)
For example, to copy a file named data2.dat from the host PC to the target PC
C:\ drive (default),
1 If you have not already done so, in the MATLAB window, type the following
to assign the
xpctarget.ftp object to a variable.
f=xpctarget.ftp;
2 Type the following to save that file to the variable data.
f.put('data2.dat');