フィルターのクリア

Writing tests for sfunctions

1 回表示 (過去 30 日間)
Frederik
Frederik 2012 年 12 月 12 日
回答済み: Jens 2014 年 1 月 13 日
Hello, is there any way or known approach to create tests (like an unitTest) for an Level2 or C-sfunction?
I know that this is way more complicated than testing a simple function, but nevertheless it should be somehow possible to describe the expected behaviour and test whether the sfunction behaves in this way or not?
Is there any detailed information on the parameters needed to call an sFunction manually?
thanks for any suggestions or hints
fred

回答 (1 件)

Jens
Jens 2014 年 1 月 13 日
S-Functions are embedded into simulink and can be executed in a Simulink model using Simulink itself. For a systematic way including model complicated signals, closed loop testing as well as test assessments and test reporting TPT is a good tool.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by