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

조회 수: 1 (최근 30일)
Taylor
Taylor 2023년 7월 13일
댓글: Taylor 2023년 8월 23일
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에서 Embedded Coder에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by