Simulink test harness with a test sequence handling function calls

6 visualizaciones (últimos 30 días)
Diana
Diana el 11 de Mzo. de 2024
Comentada: Diana el 18 de Mzo. de 2024
Hello,
I have a test harness created around a model component (which is having an Initialize event listener, a Main function call and an OutputsHandler function call).
After creating the test harness with a test sequence verification block, I saw the Initialize and Terminate function call created automatically with the test harness.
Q1: How are these 2 functions working? Is it enough to call the Initialize [send(Initialize)] in the first test step (initialization step) of the test sequence? Is it enough to call the Terminate function in the last test step of the test sequence?
Is the first step (where the Initialize function is called) responsible for the 2 sample delays that I have observed when running the test harness?
Q2: How to I handle the Main and OutputsHandler function call? Do I need to call these 2 inside each test step of the test sequence block? When calling these 2 function calls should I except to see some delays?
Thanks a lot for your support!
Diana

Respuestas (0)

Categorías

Más información sobre Test Scripts en Help Center y File Exchange.

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by