I'm currently working with Simulink in Matlab 2011b and I need to test the model functionality. Ideally, I would like to setup multiple testcases for my Simulink model similar to the testsuite in later versions. Is this possible in Matlab 2011b? If not, are there any ways to work around it?

 채택된 답변

Fangjun Jiang
Fangjun Jiang 2020년 8월 25일
편집: Fangjun Jiang 2020년 8월 25일

0 개 추천

For many common cases, using the Signal Builder block to provide the testing signals/vectors is sufficient. You can create multiple tabs, each for a testing case. You can run all the testing cases with one click.

댓글 수: 3

Mikael Almquist
Mikael Almquist 2020년 8월 25일
My model has about 100 inputs and 100 outputs and I would like to run 50-200 different test cases to show pass or fail. The simplest way for me would be if there is any way to define testcases in matlab functions. Is this possible or do I have to add everything in the Signal Builder GUI?
Fangjun Jiang
Fangjun Jiang 2020년 8월 25일
That won't be practical using the Signal Builder block. You could utilize the Data Import/Export to run the simulation. Using MATLAB script, you could construct the input data, run the simulation, collect the output, make minor modification for another testing case, and run the simulation again. It is all dorable, maybe not as convenient as in the latest MATLAB version with the toolbox.
Mikael Almquist
Mikael Almquist 2020년 8월 26일
Thank you, I guess that will be the easiest solution for me with Data Import and Export blocks and to run the Simulink model using the sim command.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Event Functions에 대해 자세히 알아보기

제품

릴리스

R2011b

질문:

2020년 8월 25일

댓글:

2020년 8월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by