User`s guide
14 Function Reference
14-6
File and File System Objects
xPC Target uses the xpctarget.ftp object to represent a target PC file, such
as a signal data file created by an xPC Target scope of type
file. Use this
object to perform file transfer operations on that file. xPC Target uses the
xpctarget.fs object to represent the target PC file system. Use this object to
perform file system manipulations.
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.fs base object when you
create either an
xpctarget.ftp or xpctarget.fs object.
This section includes the following topics:
• “xpctarget.fsbase Functions” on page 14-6 — List of methods with a brief
description
• “xpctarget.ftp Functions” on page 14-7 — List of methods with a brief
description
• “xpctarget.fs Functions” on page 14-7 — List of methods with a brief
description
It concludes with a more complete description of these methods.
Refer to Chapter 7, “Working with Target PC Files and File Systems,” for a
description of how to use these objects and methods.
xpctarget.fsbase Functions
You enter xpctarget.fsbase object methods in the MATLAB Command
Window on the host PC or use M-file scripts.
You can call the
xpctarget.fsbase methods for both xpctarget.ftp and
xpctarget.fs objects.
xpctarget.fs Create xPC Target file system object
cd Change directory on target PC
dir List contents of current directory on target PC
mkdir Make a directory on target PC