Simulink test harness with a test sequence handling function calls
1 view (last 30 days)
Show older comments
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
Answers (0)
See Also
Categories
Find more on Inputs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!