MATLAB XPC TARGET 4 - API GUIDE Guide de l'utilisateur Page 267

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 372
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 266
filetable
14-23
14filetable
Purpose Get information about open files in target PC file system
Syntax MATLAB command line
filetable(filesys_obj)
filesys_obj.filetable
Arguments
Description 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.
Examples 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.DAT
The 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. For example,
h1 = hex2dec('001E0001'))
h1 =
1966081
To close that file, use the xpctarget.fs fclose method. For example,
fsys.fclose(h1);
See Also xPC Target file object methods fopen and fclose.
filesys_obj
Name of the xpctarget.fs file system object.
Vue de la page 266
1 2 ... 262 263 264 265 266 267 268 269 270 271 272 ... 371 372

Commentaires sur ces manuels

Pas de commentaire