Error evaluating parameter 'Discretization step size' in component "model.name": scalar cannot be indexed with .

hello, I ask the following question: when I compile the model RT BOX - celda/controller in RT BOX 3 and TI c2000 launchpad LAUNCHXLF28069M, take place the error:

Error evaluating parameter ‘Discretization step size’ in component “model.name”: scalar cannot be indexed with .

I would be very grateful for any solution.

Regards.

In most cases, this is related to the model initialization script. As the error message indicates, you are treating a scalar as a structure.

For example, in the code below, attempting to access “Ts.plant” or “Ts.controller” in the model generate an error message since in the third call the datatype of “Ts” is changed from a struct to a scalar. I would recommend reviewing the model to see if you are inadvertently doing something similar.

Ts.plant = 10e-6;
Ts.controller = 100e-6;
Ts = 100e-6;