Error creating protected model
3 views (last 30 days)
Show older comments
I can successfully create protected models using R2014a, but they cannot be opened in R2015a. So, when I go through the same procedure of creating protected models using R2015a, I cannot complete the cycle. Here are the steps that I am taking:
I am using R2015a on a 32-bit platform. I created a Referenced model. Then I try to create a protected model and I get the following error/warnings:
TLC Compiler encountered an OUT_OF_MEMORY condition. Attempting to clean up...
Error: File: C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\ertlib.tlc Line: 947 Column: 18
The %if directive on this line has no matching %endif directive
Main program:
==> [00] C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\ertlib.tlc:<NONE>(18)
Error: File: C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\ertlib.tlc Line: 917 Column: 5
The %if directive on this line has no matching %endif directive
Main program:
==> [00] C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\ertlib.tlc:<NONE>(18)
Error: File: C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\ertlib.tlc Line: 891 Column: 9
The %foreach directive on this line has no matching %endforeach directive
Main program:
==> [00] C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\ertlib.tlc:<NONE>(18)
Error: File: C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\ertlib.tlc Line: 890 Column: 33
The %with directive on this line has no matching %endwith directive
Main program:
==> [00] C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\ertlib.tlc:<NONE>(18)
Main program:
==> [00] C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\ertlib.tlc:<NONE>(18)
Main program:
==> [00] C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\ertlib.tlc:<NONE>(18)
Main program:
==> [00] C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\ertlib.tlc:<NONE>(18)
### Build procedure for model: 'position_control_R2015a' aborted due to an error.
And here is the actual errror message:
Error: File: C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\ertlib.tlc Line: 862 Column: 6 The %if directive on this line has no matching %endif directive
Anyone have a solution/workaround this?
0 Comments
Answers (1)
Sainath Varikuti
on 22 Jul 2015
Edited: Sainath Varikuti
on 22 Jul 2015
Hello Remus,
The following thread discusses troubleshooting steps and workaround.
Regards,
Sainath.
0 Comments
See Also
Categories
Find more on Model Protection in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!