Why am I getting repeated copies of signals in Data Inspector?

14 views (last 30 days)
I am working with a Simulink Real-Time Model to control and moniter a lab testbed in real time. In-order to moniter the acquired signals form the testbed, I am using Simulink's Data Inspector. I only moniter few signals at a time, but all the output signals are logged. For some reason the logged signals are repating in the data inspector and unnecessarily using up storage space on my system. Does anyone know what could be the reason for Data Inscpetor to create these copies of signals?
PS: I have logged these signal only once in the Simulink Model. Please refer the images below of model input and repetition of signal in Data Inspector.

Accepted Answer

Adam
Adam on 6 Jan 2023
  1. You might have set up the logging to record multiple copies of the same signal. You can check the logging configuration by going to the "Logging" tab of the model's configuration parameters and looking at the "Signals" section. Make sure that you have not accidentally selected the same signal multiple times.
  2. You might be running multiple instances of the model, each with its own logging configuration. This could happen if you have multiple copies of the model open at the same time, or if you have the model set to run as a background task or as a scheduled job.
  3. There could be a problem with the logging configuration that is causing the signals to be logged multiple times. For example, if you have selected the "Overwrite" option for the logging destination, the data might be overwritten multiple times, causing the signals to appear repeated in the Data Inspector.
  4. There could be a problem with the Data Inspector itself, causing it to display the same data multiple times. This is less likely, but it is worth checking to make sure that there are no issues with the Data Inspector configuration or any other software that might be running on your system.
If you are not able to resolve the issue by checking these points, you might want to try deleting the logged data and starting the logging again, or you could try using a different logging tool to see if the problem persists.

More Answers (1)

dundan
dundan on 16 Feb 2024
I have the same issue. It seems to be a bug and very annoying. The double logging starts as soon as I add some additional monitoring like a simple display. It only happens in RT application on a speedgoat machine. The logged data is then twice in the SDI, pretty annoying.
  2 Comments
Juned
Juned on 16 Feb 2024
Intresting! I am as well using SpeedGoat for data acquisition and I do have few diplay blocks in the workspace.
dundan
dundan on 21 Feb 2024
Try to comment it out or remove it. Assure that all displays are removed! That was the "solution" for me.

Sign in to comment.

Categories

Find more on Save Run-Time Data from Simulation in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!