Simulink test harness with a test sequence handling function calls

3 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Test Scripts 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by