User`s guide

Using xpctarget.fs Objects
7-13
If you are using xPC Target in StandAlone mode, you can extract the data from
the data file if you know the number of signals in the scope. If you know this
number, you can extract the data. Note the following:
Ignore the first 512 bytes of the file. This is file header information.
After the first 512 bytes, the file stores the signals sequentially as doubles.
For example, assume the scope has three signals,
x, y, and z. Assume that
x[0] is the value of x at sample 0, x[1] is the value at sample 1, and so forth,
and
t[0], t[1] are the simulation time values at samples 0, 1, and so forth,
respectively. The file saves the data using the following pattern:
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, and t 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 on 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)
For example, to remove a file named data2.dat from the target PC C:\ drive
(default),
1 If you have not already done so, in the MATLAB window, type the following
to assign the
xpctarget.fs object to a variable.
fsys=xpctarget.fs;
2 Type the following to remove the specified file from the target PC.
fsys.removefile('data2.dat');
or
removefile(fsys,'data2.dat');