matlab2018b problem with microsoft visual C++ 2017 v15.0

조회 수: 4 (최근 30일)
Sonia Carraledo del Rey
Sonia Carraledo del Rey 2019년 3월 26일
답변: db1024 2019년 5월 6일
Hello,
I have a question with the generated code from simulink blocks.
I selected toolchain Microsoft Visual C++ 2017 on Code generation options.
When I generating C code, these structures are created in the "_types.h" file, which is not used in the rest of the generated code
/* Custom Type definition for Chart: '<S5>/WL_management' */
#ifndef struct_tag_skA4KFEZ4HPkJJBOYCrevdH
#define struct_tag_skA4KFEZ4HPkJJBOYCrevdH
struct tag_skA4KFEZ4HPkJJBOYCrevdH
{
uint32_T SafeEq;
uint32_T Absolute;
uint32_T NaNBias;
uint32_T NaNWithFinite;
uint32_T FiniteWithNaN;
uint32_T NaNWithNaN;
};
#endif /*struct_tag_skA4KFEZ4HPkJJBOYCrevdH*/
#ifndef typedef_skA4KFEZ4HPkJJBOYCrevdH_FCC1__T
#define typedef_skA4KFEZ4HPkJJBOYCrevdH_FCC1__T
typedef struct tag_skA4KFEZ4HPkJJBOYCrevdH skA4KFEZ4HPkJJBOYCrevdH_FCC1__T;
#endif /*typedef_skA4KFEZ4HPkJJBOYCrevdH_FCC1__T*/
#ifndef struct_tag_sJCxfmxS8gBOONUZjbjUd9E
#define struct_tag_sJCxfmxS8gBOONUZjbjUd9E
struct tag_sJCxfmxS8gBOONUZjbjUd9E
{
boolean_T CaseSensitivity;
boolean_T StructExpand;
char_T PartialMatching[6];
boolean_T IgnoreNulls;
};
#endif /*struct_tag_sJCxfmxS8gBOONUZjbjUd9E*/
#ifndef typedef_sJCxfmxS8gBOONUZjbjUd9E_FCC1__T
#define typedef_sJCxfmxS8gBOONUZjbjUd9E_FCC1__T
<S5> WL_magamente is this block created with matlab2016a.
However with the toolchain Microsoft Visual C++ 2015 this code does not appear.
Is it possible to automatically remove this part of the code?
Thanks!
  댓글 수: 1
db1024
db1024 2019년 4월 26일
Hi,
I am using MATLAB R2018a with the Toolchain "Microsoft Visual C++ 2017 v15.0 | nmake (64-bit Windows)". In my generated code, I see the same structures and they seem to be generated by nonvirtual bus signals and their corresponding input parsers.
Nevertheless, I also could not trace it down to the reason why they are generated...

댓글을 달려면 로그인하십시오.

답변 (1개)

db1024
db1024 2019년 5월 6일
The issue seems to be resolved with MATLAB R2019a (Update 1).

카테고리

Help CenterFile Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by