How do I access the current iteration number in SystemTest 2.2 (R2008b)?

1 view (last 30 days)
I am running tests on my Simulink model using SystemTest 2.2 (R2008b). I would like to do some actions based on the current iteration number. How can I access the current iteration number in a MATLAB element in the SystemTest?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 29 Mar 2010
You can access the current 'Resultset' in a SystemTest by using the following commands:
obj = systest.testresults.getCurrent;
currentResults = obj.ResultsDataSet;
Similarly, you can access the current iteration number using the property called 'NumberOfIterations'. The following code in a MATLAB element inside a main loop will display the current iteration number:
obj = systest.testresults.getCurrent;
disp(obj.NumberOfIterations);

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2009b

Community Treasure Hunt

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

Start Hunting!