matlab2018b problem with microsoft visual C++ 2017 v15.0
2 views (last 30 days)
Show older comments
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 Comment
db1024
on 26 Apr 2019
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...
Answers (1)
See Also
Categories
Find more on MATLAB Compiler SDK 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!