User`s guide

7 Working with Target PC Files and File Systems
7-4
FTP and File System Objects
xPC Target uses two objects, xpctarget.ftp and xpctarget.fs (file system),
to work with files on a target PC. You use the
xpctarget.ftp object to perform
file transfer operations between the host and target PC. You use the
xpctarget.fs object to access the target PC file system. For example, you can
use an
xpctarget.fs object to open, read, and close a signal data file created
by an xPC Target scope of type
file.
Note This feature provides FTP-like commands, such as get and put.
However, it is not a standard FTP implementation. For example, xPC Target
does not support the use of a standard FTP client.
To create an
xpctarget.ftp object, use the FTP object constructor function
xpctarget.ftp. In the MATLAB Command Window, type f = xpctarget.ftp.
xPC Target uses a file system object on the host PC to represent the target PC
file system. You use file system objects to work with that file system from the
host PC.
To create an
xpctarget.fs object, use the FTP object constructor function
xpctarget.fs. In the MATLAB window, type f = xpctarget.fs.
Both
xpctarget.ftp and xpctarget.fs belong to the xpctarget.fsbase
object. This object encompasses the methods common to
xpctarget.ftp and
xpctarget.fs. xPC Target creates the xpctarget.fsbase object when you
create either an
xpctarget.ftp or xpctarget.fs object.