Documentation

xPCFSScGetWriteMode

Get write mode of file for scope

Prototype

int xPCFSScGetWriteMode(int port, int scNum);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

Return

Returns the number indicating the write mode. Values are

0

Lazy mode. The FAT entry is updated only when the file is closed and not during each file write operation. This mode is faster than commit mode. However, if the system crashes before the file is closed, the file system does not have the actual file size. (The file contents, however, are intact.)

1

Commit mode. Each file write operation simultaneously updates the FAT entry for the file. This mode is slower than lazy mode, but the file system maintains the actual file size.

Description

The xPCFSScGetWriteMode function returns the write mode of the file for the scope.

Introduced before R2006a

Was this topic helpful?