Simulink Scope Signal Statistics Panel Data Loging.

2 次查看(过去 30 天)
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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by