Save and View Pool Monitoring Results - MATLAB & Simulink (original) (raw)
Learn how to save pool monitoring data collected using the Pool Dashboard and an ActivityMonitor object. You can then share the pool monitoring data or view the results at a later time.
Save Pool Monitoring Data
You can collect pool activity monitoring data interactively with the Pool Dashboard.
To save pool monitoring data you collect using the Pool Dashboard as a MAT file:
- In the File section of the Pool Dashboard, clickSave.
- In the Save File to Write dialog box, provide a name for the file.
- Click Save.
Alternatively, you can collect pool monitoring data programmatically using anActivityMonitor object. You can then use the save
or results
function to retrieve pool monitoring results as anActivityMonitorResults object. To learn more, see Programmatically Collect Pool Monitoring Data.
To save an ActivityMonitorResults
object to a MAT file, choose one of these options:
- Use the
save
function.
For example, to save theActivityMonitorResults
object with the namemonitoringResults
to a MAT file with the namepoolMonitoringResults
, in the MATLABĀ® Command Window, run:
save("poolMonitoringResults","monitoringResults"); - Save from the Workspace panel.
- In the Workspace panel, right-click the
ActivityMonitorResults
object variable and select . - In the Save Workspace Variables dialog box, provide a name for the file and select Save.
- In the Workspace panel, right-click the
- Open and save in the Pool Dashboard.
- Visualize the monitoring results in the Pool Dashboard. The
parpoolDashboard
function opens the Pool Dashboard and displays the monitoring results in theActivityMonitorResults
object,monitoringResults
.
parpoolDashboard(monitoringResults); - In the File section of the Pool Dashboard, click Save.
- In the Save File to Write dialog box, provide a name for the file.
- Click Save.
- Visualize the monitoring results in the Pool Dashboard. The
View Saved Results
To view results using the Pool Dashboard:
- In the section of the Pool Dashboard toolstrip, select .
- In the Select File to Open dialog box, select the saved pool monitoring results MAT file you want to open.