| xPC Target™ | ![]() |
MATLAB® command line
filetable(filesys_obj) filesys_obj.filetable
filesys_obj | Name of the xpctarget.fs file system object. |
Method of xpctarget.fs objects. From the host PC, displays a table of the open files in the target PC file system. You cannot have more than eight files open in the file system.
Return a table of the open files in the target PC file system for the file system object fsys.
filetable(fsys) or fsys.filetable
ans =
Index Handle Flags 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.DATThe table returns the open file handles in hexadecimal. To convert a handle to one that other xpctarget.fs methods, such as fclose, can use, use the hex2dec function.
h1 = hex2dec('001E0001'))
h1 =
1966081To close that file, use the xpctarget.fs fclose method.
fsys.fclose(h1);
xPC Target™ file object methods fopen and fclose.
![]() | fileinfo | fopen | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |