simscope的simscope results显示是​灰色无法点击使用,这​个功能是需要满足特定​条件后才能启动吗

28 views (last 30 days)
KKE
KKE on 25 Feb 2024
Commented: Lance on 2 Jul 2024

Answers (1)

Saurav
Saurav on 11 Mar 2024
Edited: Saurav on 14 Mar 2024
Hello,
由于我的母语不是中文,我将尝试用英语回答这个问题。感谢您的理解。
I understand that the ‘Simscape Results Explorer’ under the ‘Review Results’ on the Simulation tab of the model window is grayed out and unclickable.
This happens if the simulation did not run successfully or if the necessary condition such as ‘Enabling data logging’ for viewing the results was not met.
Here are the steps to address the issue:
  1. Run the simulation: Ensure that the simulation ran successfully. The "Simscape Results" option becomes available only after a successful simulation. Check the Diagnostic Viewer for any errors or warnings that might indicate why a simulation didn't run as expected.
  2. Enabling data logging: Before running the simulation, ensure that data logging is enabled. Set up the model to log simulation data, either for the whole model or on a block-by-block basis. Here is how you can enable the ‘log Simulation Data’ for the whole model.
a) Navigate to the ‘Modelling' tab > 'Model Configuration Parameters'. You can also use CTRL+E to open it directly.
b) Set the ‘Log Simulation data’ to ‘All’ from the drop-down menu on the “Simscape” pane of the Configuration Parameters dialog box.
c) Enable data streaming by selecting the ‘Record data in Simulation Data Inspector’ check box.
Note: Simulation data logging is not supported for:
  • Model reference
  • Generated code
Refer the following links for more information on:
  • · To log the data for selected blocks only:
  • · Data logging in ‘Simscape’:
Hope this helps!

Tags

Community Treasure Hunt

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

Start Hunting!