MATLAB XPC TARGET RELEASE NOTES Guide de l'utilisateur Page 346

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 531
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 345
fread
Purpose Read open target PC file
Syntax MATLAB command line
A = fread(file_obj,file_ID)
A = file_obj.fread(file_ID)
A = fread(file_obj, file_ID, offset, numbytes)
A = file_obj.fread(file_ID, offset, numbytes)
Arguments
file_obj
Name of the xpctarget.fs object.
file_ID
File identifier of the file to read.
offset
Position from the beginning of the file from which
fread can start to read.
numbytes
Maximum number of bytes fread can read.
Description Method of xpctarget.fs objects. From the host PC, A=
fread(file_obj,file_ID)
or A = file_obj.fread(fil e_ID ) reads
all the binary data from the file on the target PC and writes it into
matrix
A.Thefile_ID argument is the file identifier associated with an
open file (see
fopen).
From the host PC,
A = fread(file_obj, file_ID, offset,
numbytes)
or A = file_obj.fre ad(file_ID, offset, numbytes)
reads a block of by tes from file_ID and writes the block into matrix A.
The
offset argument specifies the position from the beginning of the
file from which this function can start to read.
numbytes specifies the
maximum numbe r of bytes to read. To get a count of the total number
of bytes read into
A,usethefollowing:
count = length(A);
18-22
Vue de la page 345
1 2 ... 341 342 343 344 345 346 347 348 349 350 351 ... 530 531

Commentaires sur ces manuels

Pas de commentaire