How do I get rid of the "lollypop" output on a Simulink Simulation Data Inspector plot?

4 Ansichten (letzte 30 Tage)
All of my SimEvents output in the Simulation Data Inspector plots look like a bunch of lollypops. What I really want are just the circles, or maybe curve, not the vertical lines. How can I change the output to the desired format? I am using MATLAB 2024a Update 3.
Is the lollypop display a SimEvents artifact?
Figure 1 - The Lollypops
I also notice that my Time Plot Visualization settings are limited to just the following, not the full set of options shown in the Help Center documentation. How do I access the additional Time Plot Visualization settings?
Figure 2 - My Time Plot Visualization Settings
Figure 3 – Visualization Settings Shown in Help Center Documentation
  1 Kommentar
Timothy
Timothy am 13 Jun. 2024
I learned more about the "problem." It seems the lollypop display is only related to the display of Entity Attributes (e.g., entity.TimeInUnpack) that I calculate with Event Actions. When I plot Entity Server statistics, they appear as curves. Will someone please explain the reason behind that to me? Thank you.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jaynik
Jaynik am 18 Jun. 2024
Hi Timothy,
I tried to reproduce the plot using the following example:
To access the example, I used the following command:
openExample('shared_sdi/ViewMultidimensionalDataExample')
On executing the first section, I was able to generate the "lollypop" plots which are known as Stem plots. To change the output to the desired format, look for the settings icon in the top right corner of the plot window. Use Plot types to change change the plot to required format which would be Marker as per your use case.
After changing to the "Marker" type:
  1 Kommentar
Timothy
Timothy am 18 Jun. 2024
Jaynik,
Thank you for your explanation. It makes sense for the multidimensional signals in your example. However, when I try it on my time-based entity attributes, I only get one value of the entity attribute at a time, the time listed in the upper right corner of the plot. I can animate the attribute over time by selecting the play button in the lower left, but I cannot get the array plot to display the attribute across all times in a single plot.
I'm starting to think that the Simulink Data Inspector deals with entity attributes differently from other signals. Below is an array plot of two entity attributes.
Thank you again.
Tim

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Discrete-Event Simulation finden Sie in Help Center und File Exchange

Produkte


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by