Determine whether model has changed since it was loaded
Changed = slIsFileChangedOnDisk('
sys
')
Changed = slIsFileChangedOnDisk('
Returns true if the file which contains block diagram sys
')sys
was
changed on disk since the block diagram was loaded.
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
file:
STF
_make_rtw_hook.m
if (slIsFileChangedOnDisk(sys)) error('File has changed on disk since it was loaded. Aborting code generation.'); end