Select target computer drive



selectdrive(filesys_object,drive_name) sets the currently active drive of the target computer to the specified character vector or string scalar. If a drive with that name does not exist in the target computer, the function displays an error message.

Note: The SimulinkRealTime.fileSystem object will be removed in a future release. See the release note for file system commands to use instead. These commands use the SimulinkRealTime.openFTP function and the functions for the MATLAB ftp object.


collapse all

Select the C:\ drive in the target computer.

tg = slrt;
filesys_object = SimulinkRealTime.fileSystem(tg);

Input Arguments

collapse all

File system object created by using the SimulinkRealTime.fileSystem creation function.

The file system object represents the target computer file system. You work with the target computer file system from the development computer by using file system methods.

Example: fsys

Data Types: struct

Enclose the drive name in single quotation marks. The drive must exist on the target computer.

Example: 'C:\'

Data Types: char

Introduced in R2016a