Writing tests for sfunctions

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

Respuestas (1)

Jens
Jens el 13 de En. de 2014

0 votos

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.

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 12 de Dic. de 2012

Respondida:

el 13 de En. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by