Products & Services Solutions Academia Support User Community Company

Learn more about xPC Target   

FTP and File System Objects

The xPC Target software uses two objects, xpctarget.ftp and xpctarget.fs (file system), to work with files on a target PC. You use the xpctarget.ftp object to perform file transfer operations between the host and target PC. You use the xpctarget.fs object to access the target PC file system. For example, you can use an xpctarget.fs object to open, read, and close a signal data file created by an xPC Target file scope.

To create an xpctarget.ftp object, use the FTP object constructor function xpctarget.ftp. In the MATLAB Command Window, type

f = xpctarget.ftp

The xPC Target software uses a file system object on the host PC to represent the target PC file system. You use file system objects to work with that file system from the host PC.

To create an xpctarget.fs object, use the FTP object constructor function xpctarget.fs. In the MATLAB window, type

f = xpctarget.fs

Both xpctarget.ftp and xpctarget.fs belong to the xpctarget.fsbase object. This object encompasses the methods common to xpctarget.ftp and xpctarget.fs. You can call the xpctarget.fsbase methods for both xpctarget.ftp and xpctarget.fs objects. The xPC Target software creates the xpctarget.fsbase object when you create either an xpctarget.ftp or xpctarget.fs object. You enter xpctarget.fsbase object methods in the MATLAB Command Window on the host PC or use MATLAB code scripts.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS