Simulink model error: Brace indexing is not supported for variables of this type.
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I'm not sure why I'm getting this error with Simulink. I thought perhaps it was related to "local" vs. "scoped" variables (local having [] and scoped {}), but that doesn't appear to be the case. One challenge is that the Diagnostic Viewer doesn't give me a link to where in the model the error comes from, and the only description is: Brace indexing is not supported for variables of this type.
0 comentarios
Respuestas (1)
Shadaab Siddiqie
el 2 de Ag. de 2021
From my understanding you are getting an error in your Simulink. This error message may stem from an uncaught syntax error in your reference design plugin file (plugin_rd.m). For example, if the 'CustomConstraints' property of the hdlcoder.referencedesign class is specified as a char array:
hRD.CustomConstraints = 'myConstraints.xdc';
instead of a cell array:
hRD.CustomConstraints = {'myConstraints.xdc'};
Starting from R2020a, validation for this property was added, so it will now properly error out. You can see this by running the following code in the latest release:
>> hRD = ZedBoard.vivado_base_2018_1.plugin_rd;
>> hRD.validateReferenceDesign;
which will error out with the message:
Invalid property value for property "CustomConstraints".
Value must be a cell array of character vectors, for example, hRD.CustomConstraints = {'abc.xyz'}.
2 comentarios
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!