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:
- 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!