필터 지우기
필터 지우기

Simulink Scope Signal Statistics Panel Data Loging.

조회 수: 2 (최근 30일)
Gaurav Prajapati
Gaurav Prajapati 2023년 8월 18일
편집: Gaurav Prajapati 2023년 9월 12일
How can we log the simulink scope signal statistics panel data ?

답변 (2개)

Atharva
Atharva 2023년 9월 12일
Hey Gaurav,
I understand that you are trying to log the Simulink Scope signal statistics pandel data. To log the signal statistics panel data from a Simulink Scope, you can follow these steps:
  1. Add a To Workspace Block:
  • In your Simulink model, add a "To Workspace" block to the signal whose statistics you want to log. You can find this block in the Simulink library under "Sinks."
2. Configure the To Workspace Block:
  • Connect the output of the signal you want to log to the input of the "To Workspace" block.
  • Double-click on the "To Workspace" block to open its parameters dialog box.
  • In the "Save format" section, select "Structure with time."
  • In the "Variable name" field, provide a name for the logged data, e.g., signal_stats_data.
3.Add a Scope Block (Optional):
  • If you don't already have a Scope block in your model, you can add one to visualize the signal in real-time during simulation. This step is optional, but it helps you monitor the signal while logging the statistics.
4.Configure the Scope Block (Optional):
  • Connect the same signal that you connected to the "To Workspace" block to the Scope block for real-time visualization.
  • Set the scope parameters as per your requirements for visualization.
5.Run the Simulation:
  • Start the simulation of your Simulink model.
6.Access the Logged Data:
  • After the simulation is completed, you can access the logged signal statistics panel data in the MATLAB workspace using the variable name you specified earlier (signal_stats_data in this example).
I hope this helps!

Gaurav Prajapati
Gaurav Prajapati 2023년 9월 12일
편집: Gaurav Prajapati 2023년 9월 12일
Hello Atharva you are correct but i needed something esle.
For your understanding here i am attaching the image. In that you can see the Signal Statistics Panel(in red circle) i want to log this data

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by