How get signal name & change its property between Test Harness & test sequence block ?

2 ビュー (過去 30 日間)
Megha Shimpi
Megha Shimpi 2021 年 1 月 7 日
回答済み: Akshat Dalal 2025 年 3 月 17 日
Hi All,
I have tried below script to get all the signal name at Test harness setup top level but unable to get signal names between Test Harness & test sequence block.
If anyone can help out will be very helpful.
open ABC_Harness1;
ph = get_param('ABC_Harness1','PortHandles');
LineHandles = find_system(gcs,'FindAll','on','Type','line');
set_param(ph.Outport(1),'DataLogging','on');
signalLines = find_system(gcs,'FindAll','on','type','line');
ports = [get_param(signalLines, 'Name') get_param(signalLines, 'Description') ];
disp(ports);

回答 (1 件)

Akshat Dalal
Akshat Dalal 2025 年 3 月 17 日
Hi Megha,
I understand you have already found the signals in your harness. You should be able to filter the signals based on the destination blocks, the test sequence block in this case. Please refer to the following documentation which should help you in doing this: https://www.mathworks.com/matlabcentral/answers/452859-how-to-obtain-the-source-and-destination-block-names-and-port-numbers-connected-by-a-signal-in-simul

カテゴリ

Help Center および File ExchangeInputs についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by