Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rtwbuild error tunable parameter data type struct_####### rapid accelerator

195 views
Skip to first unread message

Kyle Andringa

unread,
Nov 14, 2012, 11:03:05 PM11/14/12
to
I'm getting the following error when trying to compile my model with rapid accelerator. It works fine in accelerator. Significant literature research has produced no answers. Does anyone have any thoughts on this error:

Error using build_rapid_accel_target (line 106)
Unable to build a standalone executable to simulate the model 'My_Simulation' in rapid accelerator mode. This could be because the model
has blocks that either do not support code generation or generate code only for specific hardware targets. Models with such blocks cannot be
simulated in rapid accelerator mode.
The rtwbuild error (message and identifier shown below) may identify these blocks.
message: The block diagram 'My_Simulation' has a tunable parameter 'p1' with data type 'struct_C5fQ8XO7XfaYj4zP8mSRC'. This data type
is not supported by rsimgetrtp or in rapid accelerator mode.
identifier: 'Simulink:Engine:ParamDataTypeNotSupportedInRTP'

There is no parameter 'p1' that has been defined in the simulation.

Any thoughts?

Kyle Andringa

unread,
Nov 15, 2012, 3:05:14 PM11/15/12
to
The error message was not very helpful, but I did ultimately find the issue. There was an embedded Matlab block containing a "Parameter" in the Ports and Data Manager. This parameter was specified as tunable, and the value being assigned was a structure. For one reason or another, this is not allowed with rapid accelerator.

The solution to the problem is to declare it as an input, and then pass in a signal from a constant block. Within the constant block, you can assign the structure.

Fabrizio Schiano

unread,
Jul 27, 2016, 5:56:08 AM7/27/16
to
"Kyle Andringa" <kand...@go-asi.com> wrote in message <k83htp$qre$1...@newscl01ah.mathworks.com>...
> The error message was not very helpful, but I did ultimately find the issue. There was an embedded Matlab block containing a "Parameter" in the Ports and Data Manager. This parameter was specified as tunable, and the value being assigned was a structure. For one reason or another, this is not allowed with rapid accelerator.
>
> The solution to the problem is to declare it as an input, and then pass in a signal from a constant block. Within the constant block, you can assign the structure.

Hi,
This does not work because I get the following error:
The data type specified for the block 'xxxxxxxxxxxxx' is 'Inherit: Inherit from 'Constant value'' and the value specified for the parameter 'Value' of the block is a MATLAB structure. MATLAB structures are supported only when bus types are explicitly specified. Set the data type explicitly to a matching bus object or specify an expression which resolves to a bus object.

How did you solve the problem?

By creating a bus for example?

Kyle Andringa

unread,
Jul 27, 2016, 10:17:09 AM7/27/16
to
"Fabrizio Schiano" <fabrizio...@gmail.com> wrote in message <nna0fj$fb0$1...@newscl01ah.mathworks.com>...
It's been a while since this occurred, but I believe the solution was to create a constant block and put the Bus in that constant block. Then attach the constant block as an input to the embedded structure. I have a vague recollection that I could only go one-layer deep at a time in the embedded code.
c = A.B.C doesn't work.
b = A.B;
c = b.C; did
I'm not sure if that is true or if I'm thinking of a different issue, but I figured I'd inform you in-case this was causing you fits.

Fabrizio Schiano

unread,
Jul 27, 2016, 11:20:09 AM7/27/16
to
Thanks for your reply.
0 new messages