User`s guide
9 Working with Target PC Files and File Systems
FTP and File System Objects
The xPC Target software uses two objects, xpctarget.ftp and xpctarget. fs
(file system), to work with files on a target PC. You use the xpctarget.f tp
object to perform file transfer operation s 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 file scope.
Note This feature provides FTP-like commands, such as get and put.
However, it is not a standard FTP implementation. For example, the software
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 Comm and Window, type
f = xpctarget.ftp
The xPC Target software uses a file s ystem 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 xpcta rget.fsbase
object. This object encompasses the methods common to x pctarget.ftp
and xpctarge t.fs .Youcancallthexpctarget.fsbase methods for both
xpctarget.ftp and x pcta rget.fs objects. The xPC Target software creates
the
xpctarget.fsbase object when you create either an xpc target.ftp or
xpctarget.fs object. You enter xpctarget.f sbas e object methods in the
MATLAB Command Window on the host PC or use MATLAB code scripts.
9-4