Before running checks using Performance Advisor, complete these steps:
Enable data logging for the model.
Select how Performance Advisor applies advice.
Select validation actions for the advice.
Create a baseline measurement.
|On this page…|
Make sure the model configuration parameters are set to enable data logging using the Structured with time format.
In the model, select Simulation > Model Configuration Parameters.
In the Configuration Parameters dialog box, click Data Import/Export in the left pane.
Set Format to Structure with time.
Set up signal logging. The model must log at least one signal for Performance Advisor to work. For example, select the States or Output check box.
Click Configure Signals to Log and select the signals to log.
Click OK in the Configuration Parameters dialog box.
Run the model once to make sure that the simulation is successful.
Choose from these options to apply advice to the model:
Use check parameters. Select the checks for which you want Performance Advisor to automatically apply advice. You can review the remaining checks and apply advice manually.
Automatically for all checks. Performance Advisor automatically applies advice to all selected checks.
Generate advice only. Review advice for each check and apply changes manually.
For the checks you want to run, validate an improvement in simulation time and accuracy by comparing against a baseline measurement. Use these options as global settings for the checks you select:
Use check parameters. From the checks you want to run, select the ones for which you want to validate an improvement in performance. Specify validation action for fixes using individual settings for these checks.
For all checks. Performance Advisor automatically validates an improvement in performance for the checks you select.
Do not validate. Performance Advisor does not validate an improvement in performance. Instead, you can validate manually. When you select this option and also specify for Performance Advisor to apply advice automatically, a warning appears before Performance Advisor applies changes without validation.
These global settings for validation apply to all checks in the left pane except the Final Validation check. The Final Validation check validates the overall performance improvement in a model after you have applied changes. In case you do not want to validate changes resulting from other check results, you can run the Final Validation check to validate model changes for simulation time and accuracy.
A baseline measurement is a set of simulation measurements that Performance Advisor measures check results against.
Note: Before creating a baseline measurement, ensure that you Enable Data Logging for the Model.
In the model, select Analysis > Performance Tools > Performance Advisor to start Performance Advisor.
In the left pane, in the Baseline folder, select Create Baseline.
In the right pane, under Input Parameters, enter a value in the Stop Time field for the baseline.
When you enter a Stop Time value in Performance Advisor, this overrides the value set in the model. A large stop time can create a simulation that runs longer.
If you do not enter a value, Performance Advisor uses values from the model. Performance Advisor uses values from the model that are less than 10. Performance Advisor rounds values from the model larger than 10 to 10.
Select the Check to view baseline signals and set their tolerances check box to start the Signal Data Inspector after Performance Advisor runs a check. Using the Signal Data Inspector, you can compare signals and adjust tolerance levels.
Click Run This Check.
When a baseline has been created, a message like the following appears under Analysis:
After the baseline has been created, you are can run Performance Advisor checks.