How do I assign the storage class of a test point with ert.tlc?

1 visualización (últimos 30 días)
Is it possible to modify ert.tlc to allow me to have all model test points get assigned to a storage class?

Respuesta aceptada

Debadipto
Debadipto el 4 de Ag. de 2023
Hi Taylor,
You can check the following code snippet in order to assign all model test points to a storage class:
testPoints = find_system(model, 'BlockType', 'TestPoint');
% Assign storage class to each test point
storageClass = 'ExportedGlobal';
for i = 1:numel(testPoints)
set_param(testPoints{i}, 'StorageClass', storageClass);
end
Thanks & Regards,
Debadipto Biswas
  1 comentario
Taylor
Taylor el 23 de Ag. de 2023
I think this generally work. I was hoping for a tlc solution that does not update the model itself (only the generated code), but this may be the most straight forward solution.
Thanks,
Taylor

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Embedded Coder en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by