Return the free space and total space on the drive, in bytes
a structure containing the free space and total space on the drive,
in bytes. If a drive with that name does not exist in the target computer,
displays an error message.
disk_space = diskspace(
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
Return the free space and total space on the
in the target computer.
tg = slrt; fsys = SimulinkRealTime.fileSystem(tg); diskspace(fsys,'C:\')
ans = freeDiskSpacebytes: 5.9889e+10 totalDiskSpacebytes: 6.0005e+10
disk_space— Contains the free space and total space on the drive
Returns a structure containing the following fields:
freeDiskSpacebytes — The
number of bytes of unused space on the drive.
totalDiskSpacebytes — The
total number of bytes on the drive.