Error with Embedded Coder Quick Start for AUTOSAR

10 views (last 30 days)
I tried to generate code from AUTOSAR model. but I'm not successful it. it has occurred error. I don't know what occurred the problem that. the following text is error log.so... please help me?
Error: Error occurred when generating shared type: Type, 'BoostCurveStructType', is specified to export to a header file, but compact file format has been requested. Either select a different file packaging format or do not select the 'Export' option for the data type.
I'm trying that, make to look up table and type to script referring of look up table class.
LUTObj.Table.DataType = 'double';
LUTObj.Breakpoints(1).DataType = 'double';
LUTObj.Breakpoints(2).DataType = 'double';
LUTObj.Table.FieldName = 'TorqueMap';
LUTObj.Breakpoints(1).FieldName = 'Angle';
LUTObj.Breakpoints(2).FieldName = 'Speed';
%
%
LUTObj.CoderInfo.StorageClass = 'ExportedGlobal';
LUTObj.StructTypeInfo.Name = 'BoostCurveStructType';
LUTObj.StructTypeInfo.DataScope = 'Exported';
LUTObj.StructTypeInfo.HeaderFileName = 'BoostCurveStructType.h';
open_system('Bsts')
load_system('Bsts')
set_param('Bsts/ReEscController_sys/Boost Curve',...
'DataSpecification','Lookup table object',...
'LookupTableObject','LUTObj')
but
when I command that rtwbuild, it has occurred the problem.

Accepted Answer

KOOKMIN UNIV
KOOKMIN UNIV on 3 Oct 2018
I have the successful task. the problem is simple.
the following code is successful it
LUTObj.Table.DataType = 'double';
LUTObj.Breakpoints(1).DataType = 'double';
LUTObj.Breakpoints(2).DataType = 'double';
LUTObj.Table.FieldName = 'TorqueMap';
LUTObj.Breakpoints(1).FieldName = 'Angle';
LUTObj.Breakpoints(2).FieldName = 'Speed';
LUTObj.CoderInfo.StorageClass = 'Auto';
LUTObj.StructTypeInfo.Name = 'BoostCurveStructType';
LUTObj.StructTypeInfo.DataScope = 'Auto';
LUTObj.StructTypeInfo.HeaderFileName = 'Rte_Type.h';

More Answers (0)

Categories

Find more on AUTOSAR Blockset in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!