Why is the ‘ExecutionTime’ object not created during model simulation in Simulink Test?

I have a model and a corresponding SIL/PIL test harness in which I have enabled the ‘CodeExecutionProfiling’ option in the model Configuration Parameters.

If I simulate the test harness normally, the ‘ExecutionTime’ object is created and stored in the variable ‘executionProfile’. However, when I a SIL/PIL equivalence test in Test Manager, the object is not created.

How can I retrieve the ‘ExecutionTime’ object upon completion of my test case?

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

The ‘executionProfile’ variable is saved as a property of the ‘Simulink.SimulationOutput’ object in the test case and can be accessed using the ‘Custom Criteria’ section of the test case.

The following code provides two ways of obtaining the ‘executionProfile’ variable and should be entered into the ‘Custom Criteria’ section of the test case:

% Get the ExecutionTime object
executionProfile = test.sltest_simout.executionProfile;
% Option 1: Save as a MAT file
save('executionProfile.mat','executionProfile');
% Option 2: Assign in the base workspace
assignin('base','executionProfile',executionProfile);

SEE COMPLETE ANSWER CLICK THE LINK

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Beginner’s Guide to Entity Framework

The Magic Behind Magic

Common python functions to know

New Features of Swift 4.2 🔥

Major Responsibilities of QA Team in Agile Software Development

Breaking down User Defined Python functions

Structural Pattern Matching in Python

My Ten Month Journey Into the World of the Linux Desktop

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

Update for the progress

How to control elevation of geoshow() contour lines

BASH algorithm should not predict Brontaroc

Review of Machine Learning with Python-From Linear Models to Deep Learning on Edx