Simulink - average and output values

2 vues (au cours des 30 derniers jours)
marcusbarnet
marcusbarnet le 27 Mar 2018
Commenté : marcusbarnet le 28 Mar 2018
I use simulink to read from a sensor which outputs 10 integers values per second (10 Hz).
I would like to compute the average every 100 samples (each 10 seconds).
What is the best way to acquire the samples for 10 seconds and output the mean? For the moment, I'm using "tapped delay" function, but I do not know if it is working correctly.
I connected the "mean" block to the "tapped delay" block by specifying the "number of delays" to 100 and so I expect to see only 10 outputs after the "mean" block, but the values always changes and so I'm not sure if the output is correct.
Can you help me, please?
Configuration for the tapped delay block:
Configuration for mean block:
  1 commentaire
marcusbarnet
marcusbarnet le 28 Mar 2018
is there any suggestion?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Simulink Functions 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