Why do I receive errors regarding ASAP2 when I generate code for my model in Simulink 8.2 (R2013b)?

4 views (last 30 days)
I am generating code from with my Simulink model that uses an ASAP2 data exchange interface. My model generates code correctly in Simulink R2013a, but it fails with one or more of the following error message in R2013b:
Error: File: C:\Program Files\MATLAB\R2014a\rtw\c\tlc\mw\asap2main.tlc Line: 50 Column: 41
Undefined identifier ASAP2EnableTestPoints
Error: File: C:\Program Files\MATLAB\64bit\R2013bPre\rtw\c\tlc\mw\asap2lib.tlc Line: 3546 Column: 57
Function argument mismatch; function ASAP2UserFcnWriteCharacteristic_Lookup2D expects 1 arguments
Error: File: C:\Program Files\MATLAB\R2014a\rtw\c\tlc\mw\asap2lib.tlc Line: 3653 Column: 58
Function argument mismatch; function ASAP2UserFcnWriteCharacteristic_Scalar expects 1 arguments
Error: File: C:\MATLAB\R2014a\rtw\c\tlc\mw\asap2lib.tlc Line: 3653 Column: 41
Values of NULL type cannot be expanded

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 24 Oct 2013
This behavior is due to an intentional change MathWorks made in R2013b to enhance a2l file generation for models that use the ASAP2 data exchange interface. These errors are occurring because the custom TLC files being used to generate code for the ASAP2 data exchange were intended for an earlier release of MATLAB.
If you obtained these files from a third party we recommend you contact them in order to obtain an up to date version of these TLC files.
If you wrote the TLC files which control the behavior of the ASAP2 data exchange then one or more of the following files may need to be updated: asap2setup.tlc, asap2lookup1d.tlc, asap2scalar.tlc, or asap2lookup2d.tlc
Examples of these files with an up to date set of variable and calling syntax of functions can be in the [matlabroot '/toolbox/rtw/targets/asap2/asap2/user/'] and [matlabroot '/toolbox/rtw/targets/asap2/asap2/user/templates/']  directories. 

More Answers (0)

Products


Release

R2013b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!