User`s guide
readxpcfile
Purpose Interpret raw data from xPC Target file format
Syntax file=readxpcfile(data)
readxpcfile('filename')
Arguments
data
Vector of uint8 bytes.
'filename'
File from which the vector of uint8 bytes is read.
Vector is written
Description The re adxp cfile function converts xPC Target file format content (in
bytes) to double precision data. A scope of type file creates the data.
After you download the data from a target PC, use one of the follo wing
to read the data:
• To read the data after you download it to the targe t PC, use the
fread function
• TodownloadthedatatothetargetPCandreadit,usethe
xpctarget.fs object fread method.
file=readxpcfile(data) converts data to double precision data
representing the signals and timestam ps.
readxpcfile('filename') converts contents of 'filename' to double
precision data representing the signals and timestamps.
Examples Use the xpctarget.fs object to convert data:
file=xpctarget.fs;
h=file.fopen('filename');
data=file.fread(h);
file.fclose(h);
file = readxpcfile(data);
Use the xpctarget.ftp object to copy the file from the target PC to the
host PC, then read and convert the data.
18-90