From: Gergely Takács on
Dear Fabio:

I use the following script to retreive the data file from the XPC Target computers hard drive and process it into Matlab's workspace:


fsys = xpctarget.fs; % Create file system object
h = fsys.fopen('data.dat'); % Open file on the target file system
data = fsys.fread(h); % Read the thing into a matlab variable (still XPC format!)
fsys.fclose(h); % Close file on file system
new_data = readxpcfile(data); % Convert it to matlab variable

%now you can access parts of your data
y1=new_data.data(:,1);
y2=new_data.data(:,2);
%[...] so on depending on the size

Cheers.

g.

"fabiofiato " <fabio.fiato(a)hotmail.it> wrote in message <h8vk69$aai$1(a)fred.mathworks.com>...
> Hi to all,
> I have implemented in simulink a sequential functional chart,
> I Have run my application in xpc target and generated my file data.dat but I don't know how to open this file to view the results.
> Can help me to find a guide or to open this file?
> thank's to all
> fabio