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

  • 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 146
Using xpctarget.fs Objects
7-9
Using xpctarget.fs Objects
The fs object enables you to work with the target PC file system. The fs object
has methods that allow you to use
cd to change directories
dir to list the contents of the current directory
diskinfo to get information about the current disk
fclose to close a file (similar to MATLAB fclose)
fileinfo to get information about a particular file
filetable to get information about files in the file system
fopen to open a file (similar to MATLAB fopen)
fread to read a file (similar to MATLAB fread)
fwrite to write a file (similar to MATLAB fwrite)
getfilesize to get the size of a file in bytes
mkdir to make a directory
pwd to get the current working directory path
removefile to remove a file from the target PC
rmdir to remove a directory
Useful global utility:
readxpcfile, to interpret the raw data from the fread method
The procedures in this section assume that the target PC has a signal data file
created by an xPC Target scope of type
file. This file has the pathname
C:\data.dat.
This section includes the following topics:
“Accessing File Systems from a Specific Target PC” on page 7-10
“Retrieving the Contents of a File from the Target PC to the Host PC” on
page 7-11
“Removing a File from the Target PC” on page 7-13
“Getting a List of Open Files on the Target PC” on page 7-14
Vue de la page 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 371 372

Commentaires sur ces manuels

Pas de commentaire