Building Test Harness programmatically

7 ビュー (過去 30 日間)
Maradona Rodrigues
Maradona Rodrigues 2012 年 7 月 23 日
回答済み: Jens 2014 年 1 月 13 日
Hi Users,
I am trying to build the test harness for testing the simulink and stateflow models i deveop and currently held up with a method of how to create the harness between the test input vectors and the plant model.
My test Input vectors are in the form of signal builder block and they should be connected to the datatype conversion blocks . i am aware of the following commands to do the thing i need but cannot get a proper script for it to do automatically.
1. I need to output the signal names from the signal builder i guess this command will give me the names from the signal builder [siglabels] = signalbuilder(block)
2. I believe the add_line command will connect the signals to the data type conversion blocks of each signals
add_line('mymodel','siglabels(i)/1','DataTypeConversion/1')
please can someone give me a script for the above problem.
I can send an example model if required.
Cheers

回答 (1 件)

Jens
Jens 2014 年 1 月 13 日
The testing and verification tool TPT comes with funcions that generate the test harness automatically for Simulink and Stateflow models

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by