Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Sonia Carraledo del Rey
Sonia Carraledo del Rey am 26 Mär. 2019
Beantwortet: db1024 am 6 Mai 2019
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 Kommentar
db1024
db1024 am 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...

Melden Sie sich an, um zu kommentieren.

Antworten (1)

db1024
db1024 am 6 Mai 2019
The issue seems to be resolved with MATLAB R2019a (Update 1).

Kategorien

Mehr zu MATLAB Compiler SDK finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by