Is it possible to assign arrays with different length for LUT parameters in generated code than in Simulink?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Karthik Vemireddy
am 12 Jun. 2019
Bearbeitet: Nick Sarnie
am 1 Jul. 2019
Hi,
I intend to generate C-Code out of my simulink model using Simulink Coder (ert.tlc). I wish to tune certain parameters of simulink model and for this reason, i have created simulink objects with "ImportedExternPointer" storage class.
While compiling and generating the code, the length of arrays for breakpoint and table data of a particular lookup table was 15000. I wish to tune these parameters, not just by the values, but also by the length of these arrays. I hoped that defining them as pointers would allow me to do so. However in the code, the function for lookup table looks as follows
real_T look1_bftfId_binlagpw(real_T u0, const real32_T bp0[], const real32_T
table[], uint32_T maxIndex)
and correspondingly, the code snippet for the relevant lookup table is as below.
look1_bftfId_binlagpw
(InputSignal->Timing.t[0], BreakpointData,
TableData, 15000U)
Is there a way to remove this restriction and give different sized array as inputs?
Thanks and best regards,
Karthik
0 Kommentare
Akzeptierte Antwort
Nick Sarnie
am 28 Jun. 2019
Bearbeitet: Nick Sarnie
am 1 Jul. 2019
Edit: See below response
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!