User`s guide

Using xpctarget.fs Objects
1 In the MATLAB window, type a command like the following to assign the
xpctarget.xpc object to a v ariable.
tg1=xpctarget.xpc('TCPIP','192.168.0.10','22222');
2 Type the following command to assign the xpctarget.fs object to the tg1
target object variable.
fs=xpctarget.fs(tg1);
Alternativ ely, if you want to work with the fi le system of the default targ et
PC, you can use the
xpctarget.fs constructor without arguments.
1 In the MATLAB window, type a command like the following to assign the
xpctarget.fs object to a variable.
fsys=xpctarget.fs;
The xPC Target software assigns the fsys variable to the default target P C.
2 Type
fsys.dir;
Retrieving the Contents of a File from the Target PC
to the Host PC
You can retrieve the contents of a data file from the target PC by using
xPC Target methods on the host PC for the
xpctarget.fs object. This
is an alternate m ethod to “Exporting Data from File Scopes to MATLAB
Workspace” on page 3-36 in Chapter 3, “Signals and Parameters”.
Use the method syntax to run an
xpctarget.fs object method. The syntax
method_name(fs_object, argument_list) can be replaced with
fs_object.method_name(argument_list)
For example, to retrieve the contents of a file n amed data.dat from the target
PC C:\ drive (default),
9-11