User`s guide
filetable
Purpose Information about open files in target PC file system
Syntax MATLAB command line
filetable(filesys_obj)
filesys_obj.filetable
Arguments
filesys_obj
Name of the xpctarget. fs file system object.
Description Method of xpctarge t.fs objects. F rom the host PC, displays a table of
theopenfilesinthetargetPCfilesystem.Youcannothavemorethan
eight f iles open in the file system.
Examples Return a table of the o pen files in the target PC file system for the file
system object
fsys.
filetable(fsys) or fsys.filetable
ans =
Index Handle Flag s FilePos Name
------------------------------------------
0 00060000 R__ 8512 C:\DATA.DAT
1 00080001 R__ 0 C:\DATA1.DAT
2 000A0002 R__ 8512 C:\DATA2.DAT
3 000C0003 R__ 8512 C:\DATA3.DAT
4 001E000S R__ 0 C:\DATA4.DAT
The table returns the open file handles in hexadecimal. T o convert a
handle to one that other
xpctarget.fs methods, such as fclose,can
use, use the
hex2dec function.
h1 = hex2dec('001E0001'))
h1 =
1966081
To close that file, use the xpctarget.fs fclose method.
18-18