User`s guide
Using xpctarget.fs Objects
Using xpctar get.fs Objects
In this section...
“Overview” on page 9-9
“Accessing File Systems from a Specific Target PC” on page 9-10
“Retrieving the Contents of a File from the Target PC to the Host PC” on
page 9-11
“Removing a File from the Target P C” o n page 9-14
“Getting a List of Open Files on the Target PC” on page 9-14
“Getting Information about a File on the Target PC” on page 9-15
“Getting Information about a D isk on the Target PC” on page 9-16
Overview
The fs object enables you to work with the target P C file system from the host
PC. You enter target object methods in the MATLAB window on the host PC
or use scripts. The
fs object has methods that allow you to use
•
cd to change directories
•
dir to list the contents of the current folder
•
diskinfo to get information about the specified disk
•
fclose to close a file (simil ar to MATLAB f close)
•
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 M ATL AB f read)
•
fwrite to write a fi le (sim il ar to MATLAB fwrite)
•
getfilesize to get the size of a file in bytes
•
mkdir to make a folder
•
pwd to get the current working folder path
9-9