MATLAB XPC TARGET RELEASE NOTES Guia do Utilizador Página 190

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 189
9 Working with Target PC Files and File Systems
removefi le to remove a file from the target PC
rmdir to remove a folder
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 file scope. This file has the pathname
C:\data.dat.
The xPC Target software also provides methods that allow you to perform file
transfer operations, such as p utting files on and getting files from a targ et
PC. For a description of these methods, see “Using xpctarget.ftp Objects”
on page 9-5.
Accessing File Systems from a Specific Target PC
You can access specific target PC files from the host PC for the xpctarget.fs
object.
Use the
xpctarget.fs creator function. If your system has mu l t ip le targets,
you can access specific target PC files from the host PC for the
xpctarget.fs
object.
For example, to list the name of the current folder of a target PC through
a TCP/IP connection,
1 In the MATLAB window, type a command like the following to assign the
xpctarget.fs object to a variable.
fsys=xpctarget.fs('TCPIP','192.168.0.10','22222');
2 Type
fsys.dir;
Alternatively, you can use the xpctarget.xpc constructor to first construct a
target object, then use that target object as an argument to
xpctarget.fs.
9-10
Vista de página 189
1 2 ... 185 186 187 188 189 190 191 192 193 194 195 ... 530 531

Comentários a estes Manuais

Sem comentários