simulink block having lower output refresh rate than input
Afficher commentaires plus anciens
Hello,
I programmed a matlab function enabling to calculate an online frequency analysis of time data (online generation of a Bode diagram) and it works fine offline.
Now I have to implement it to make it work online with sensors. I will write a C function and convert it to a MEX S-Function to use it in simulink. I will than get a block having two inputs (two signals) and giving the estimated transfer function as output.
The problem is that the sensors (i.e generating the input data) have are refreshed avery 5ms, and my block can only output a value each 5 secs. Is it possible to make this work with simulink ? I would have:
input signal (updated each ts=5 ms) during 5 seconds --> Function processing the data acquired --> input signal next 5 seconds --> processing the data acquired.
So that it takes 10 seconds of input signal (10*fs values) to generate 2 estimations of the transfer function.
I have also the feeling that the processing of the acquired data should be done in parallel while data continues to be acquired (because the signals are updated during the processing time!), is that possible? It would be great if you could tell me where I can find some documentation or examples of such kind of implementation because I didn't found anything on the subject.
Thank you :)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Discontinuities dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!