Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

slIsFileChangedOnDisk

Determine whether model has changed since it was loaded

Syntax

Changed = slIsFileChangedOnDisk('sys')

Description

Changed = slIsFileChangedOnDisk('sys') Returns true if the file which contains block diagram sys was changed on disk since the block diagram was loaded.

Examples

To ensure that code is not generated for a model whose file has changed on disk since it was loaded, include the following in the 'entry' section of the STF_make_rtw_hook.m file:

if (slIsFileChangedOnDisk(sys))
	error('File has changed on disk since it was loaded. Aborting code generation.');
end

Introduced in R2007b

Was this topic helpful?