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

2 次查看(过去 30 天)
Is it possible to modify ert.tlc to allow me to have all model test points get assigned to a storage class?

采纳的回答

Debadipto
Debadipto 2023-8-4
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 个评论
Taylor
Taylor 2023-8-23
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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by