User`s guide
9 Working with Target PC Files and File Systems
x[0] y[0] z[0] t[0] x[1] y[1] z[1] t[1] x[2] y[2] z [2] t[2]...
x[N] y[N] z[N] t[N]
N
is the number of samples acquired. The file saves x, y, z,andt as doubles
at 8 bytes each.
Removing a File from the Target PC
You can remove a file from the target PC by using xPC Target methods o n
the host PC for the
xpctarget.ftp object. If you have not already done so,
close this file first with
fclose.
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)
Forexample,toremoveafilenameddata2.dat from the target PC C:\ drive
(default),
1 Ifyouhavenotalreadydoneso,intheMATLABwindow,typethefollowing
to assign the
xpctarget.fs object to a variable.
fsys=xpctarget.fs;
2 T ype the following to remo ve the specified file fro m the target PC.
fsys.removefile('data2.dat');
or
removefile(fsys,'data2.dat');
Getting a L ist of Open Files on the Target PC
You can get a list of open files on the target PC file system from the host PC
by using xPC Target methods on the host PC for the
xpctarget.fs object. Do
this to ensure you do not have files open unnecessarily. The target PC file
system limits the number of open files you can have to eight.
Use the method syntax to run an
xpctarget.fs object method. The syntax
method_name(fs_object, argument_list) can be replaced with
9-14