How to programmatically access signal builder groups in simulink test manager ?

18 ビュー (過去 30 日間)
Anjali Anju
Anjali Anju 2022 年 1 月 17 日
コメント済み: Anjali Anju 2022 年 1 月 24 日
Hi, I am trying to test a simulink model using Simulink test manager programmatically. I have added a signal builder and created different signal builder groups to provide input to my model. Please let me know how can I add/access the same signal builder groups using script under the "Inputs" section of Simulink Test manager.
Note : I am able to test the model manually by checking the Signal builder group checkbox and selecting the required group from the dropdown in Simulink test manager and is looking for a way to perform the same using script. I am using Matlab 2017b and Simulink version 9.0.
Any feedback is appreciated.

回答 (1 件)

Ajay Krishna Vasanthakumar
Ajay Krishna Vasanthakumar 2022 年 1 月 17 日
Hello Anjali,
Signal Builder block has its own API "signalbuilder". Using this API we can add,set groups, signals to the existing Signal Builder block or add new signal builder block.
For example: To change the active group in existing signal builder. we can use the below command.
>> signalbuilder(gcb, 'ACTIVEGROUP', 2)
Use can check >> help signalbuilder for more information.
Thanks.
  1 件のコメント
Anjali Anju
Anjali Anju 2022 年 1 月 24 日
Many thanks for your feedback. I was specifically looking at how I can enable the "Signal Builder Groups" checkbox under "Inputs" section programmatically in Simulink test manager.

サインインしてコメントする。

カテゴリ

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

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by