Error with Embedded Coder Quick Start for AUTOSAR

조회 수: 5 (최근 30일)
KOOKMIN UNIV
KOOKMIN UNIV 2018년 10월 3일
답변: KOOKMIN UNIV 2018년 10월 3일
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.

채택된 답변

KOOKMIN UNIV
KOOKMIN UNIV 2018년 10월 3일
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';

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by