Question about Error during TLC Script debug in Simulink Coder
Show older comments
I would you like a support about a error during the TLC Script Debug:
The line below, don't work during the Debug.
struct_and_sizes -> parameters_size = ( unsigned char* ) %<RTMGet ( "DefaultParam" )>;
I would like know, if the command below was change for the Matlab R2020a. ?
%<RTMGet
Following below the script:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%with ::CompiledModel
%if LibExternalInputsStructIsEmpty ( )
struct_and_sizes -> inputs = 0;
struct_and_sizes -> inputs_size = 0;
%else
struct_and_sizes -> inputs = ( unsigned char* ) %<RTMGet ( "U" )>;
struct_and_sizes -> inputs_size = sizeof ( %<::CompiledModel.GlobalScope.tInputType> );
%endif
%if LibParametersStructIsEmpty ( )
struct_and_sizes -> parameters = 0;
struct_and_sizes -> parameters_size = 0;
%else
struct_and_sizes -> parameters_size = ( unsigned char* ) %<RTMGet ( "DefaultParam" )>;
struct_and_sizes -> parameters_size = sizeof ( %<::CompiledModel.GlobalScope.tParametersType> );
%endif
%with ::CompiledModel
%if !LibExternalInputsStructIsEmpty ( )
if ( struct_and_sizes -> inputs )
{
memcpy ( struct_and_sizes -> inputs, %<RTMGet ( "U" )>, sizeof ( %<::CompiledModel.GlobalScope.tInputType ) );
}
%<RTMGet ( "U ")> = struct_and_sizes -> inputs;
%endif
%if !LibParametersStructIsEmpty ( )
if ( struct_and_sizes -> parameters )
{
memcpy ( struct_and_sizes -> parameters, %<RTMGet ( "DefaultParam" )>, sizeof ( %<::CompiledModel.GlobalScope.tParametersType> ) );
}
%<RTMGet ( "DefaultParam" )> = struct_and_sizes -> parameters;
%endif
%endwith
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Answers (0)
Categories
Find more on Target Language Compiler 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!