Logging different data at same time

3 vues (au cours des 30 derniers jours)
Vrinda V Nair
Vrinda V Nair le 6 Avr 2023
Commenté : Mathieu NOE le 7 Avr 2023
I wanted to log store different data form simulnk motor model like angle, torque, speed, current, back emf. I have tried storing the data with different methods like storing from scope data, using 'to_workspace" block, also using 'log signals' options. But in all theses methods the data is stored at different time stamps. Is it possible to store a specific number of data points (eg; 50000), which is collected at every 0.1 s. I tried changing logging intervals from model settings. But I don't know how to give parameter in this to store value every 0.1s.
  3 commentaires
Vrinda V Nair
Vrinda V Nair le 6 Avr 2023
Hi,
Thanks it worked with zero order hold block.
I have used variable-step type solver.
Mathieu NOE
Mathieu NOE le 7 Avr 2023
My pleasure !

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Prepare Model Inputs and Outputs dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by