Test Harness for a Model
1 回表示 (過去 30 日間)
古いコメントを表示
I have got Matlab R2009b version installed on my machine. I created a Simulink model which has 18 Inputs and 4 Outputs, automated C language code is generated using the model.
Is there a way for me to send 10 different values for each input signal with different time frames and expect the output using a script, if yes can you guide me? Also is there an approach for me to send these inputs through a spread sheet and capture the results in the .xls file.
0 件のコメント
回答 (2 件)
Kaustubha Govind
2011 年 2 月 22 日
If you are looking for a formalized way to do this, SystemTest is what you're looking for. There is also a demo that describes importing Excel data to perform this kind of testing.
Otherwise, you can use XLSREAD/XLSWRITE to interface MATLAB with Excel, and use the various techniques available in Simulink to import/export data.
0 件のコメント
Jens
2012 年 12 月 3 日
For the systematic testing of Simulink models PikeTec offers the model based testing tool TPT http://piketec.com/products/tpt/matlab-simulink.php. The test harness can be generated automatically and the results will be given as an html report.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Verification, Validation, and Test についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!