I use the following DOS commands (SYSTEM commands) from MATLAB to modify a Make file that was generated by Real-Time Workshop 7.3 (R2009a).
fid1 = fopen(CodeToModify, 'r');fid2 = fopen('Tmp.m', 'w');%
% Modify Tmp.m (fid2) somehow
%…
[status, result] = dos(['ATTRIB -R ', CodeToModify]); [status, result] = dos(['del ' CodeToModify, ' -echo']); [status, result] = dos('ATTRIB -R Tmp.m'); [status, result] = dos(['REN Tmp.m "', CodeToModify, '"']); [status, result] = dos(['ATTRIB +R ', CodeToModify]);
I now wish to execute the 'Model.BAT' file to build this code with the updated Make file. However, I receive the following error message.
\RTW\C\Tools\lcctools.mak no such file or directory.
I can navigate to the folder and verify that this file is present.
Best Answer