MATLAB XPC TARGET RELEASE NOTES Guida Utente Pagina 188

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 187
9 Working with Target PC Files and File Systems
Forexample,toretrieveafilenameddata.dat from the target PC C:\ drive
(default),
1 Ifyouhavenotalreadydoneso,intheMATLABwindow,typethefollowing
to assign the
xpctarget.ftp object to a v ariable.
f=xpctarget.ftp;
2 Type
f.get('data.dat');
This retrieves the file and saves that file to the variable data.Thiscontent
is in the xPC Target file format.
Copying a File from the Host PC to the Target PC
You can place a copy of a file from the host PC by using xPC Target methods
on the host PC for the
xpctarget.ftp object.
Use the method syntax to run an
xpctarget.ftp object method. The syntax
method_name(ftp_object, argument_list) can be replaced with
ftp_object.method_name(argument_list)
For example, to copy a file named data2.dat fromthehostPCtothetarget
PC C:\ drive (default),
1 Ifyouhavenotalreadydoneso,intheMATLABwindow,typethefollowing
to assign the
xpctarget.ftp object to a v ariable.
f=xpctarget.ftp;
2 Type the following to save that file to the variable data.
f.put('data2.dat');
9-8
Vedere la pagina 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 530 531

Commenti su questo manuale

Nessun commento