Memory and Storage issue for parallel simulation

1 vue (au cours des 30 derniers jours)
MENGZE WU
MENGZE WU le 2 Mar 2023
Modifié(e) : Divyank le 9 Mar 2023
I use parrellel simulation to simultate my simulink model. The simulink model needs to run 1200 times, and each run the it will generate 2^23 data point for the output. That amount of data times 1200 run will be >40GB, which is unacceptable for me. Before, I'm using loop to run 1200 times, which is slow, but I get to process data everytime I run and clear the data of prior run. However, now I'm using parrellel simulation which is much faster, but it will save all the points. Is there anyway to solve this problem in parrellel simulation?

Réponses (1)

Divyank
Divyank le 9 Mar 2023
Modifié(e) : Divyank le 9 Mar 2023
Hello @MENGZE WU, there are different ways to handle the large amount of data generated by parallel simulation. Here are some suggestions:
  • Reduce the amount of data generated by the model: You can reduce the amount of data generated by the model by using simulation options such as "Limit data points to last" or "Limit data points to first" to control the amount of data saved. You can also consider using the "Decimation" option to reduce the number of data points generated by the model.
  • Save data to disk only when necessary: If you need to save data to disk, consider saving it only at the end of each run or at specific intervals. You can also use compression techniques to reduce the size of the saved data.

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by