| xPC Target™ | ![]() |
MATLAB command line
filesys_object = xpctarget.fs('mode', 'arg1', 'arg2')filesys_object | Variable name to reference the file system object. | |
mode | Optionally, enter the communication mode: | |
TCPIP | Specify TCP/IP connection with target PC. | |
RS232 | Specify RS-232 connection with target PC. | |
arg1 | Optionally, enter an argument based on the mode value: | |
IP address | If mode is 'TCPIP', enter the IP address of the target PC. | |
COM port | If mode is 'RS232', enter the host COM port. | |
arg2 | Optionally, enter an argument based on the mode value: | |
Port | If mode is 'TCPIP', enter the port number for the target PC. | |
Baud rate | If mode is 'RS232', enter the baud rate for the connection between the host and target PC. | |
Constructor of a file system object. The file system object represents the file system on the target PC. You work with the file system by changing the file system object using methods.
If you have one target PC object, or if you designate a target PC as the default one in your system, use the syntax
filesys_object=xpctarget.fs
If you have multiple target PCs in your system, or if you want to identify a target PC with the file system object, use the following syntax to create the additional file system objects.
filesys_object=xpctarget.fs('mode', 'arg1', 'arg2')In the following example, a file system object for a target PC with an RS-232 connection is created.
fs1=xpctarget.fs('RS232','COM1','115200')
fs1 =
xpctarget.fsOptionally, if you have an xpctarget.xpc object, you can construct an xpctarget.fs object by passing the xpctarget.xpc object variable to the xpctarget.fs constructor as an argument.
>> tg1=xpctarget.xpc('RS232','COM1','115200');
>> fs2=xpctarget.fs(tg1)
fs2 =
xpctarget.fs
![]() | xpcnetboot | xpctarget.ftp | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |