Azzera filtri
Azzera filtri

simulation of a continuous data input (in Simulink)

1 visualizzazione (ultimi 30 giorni)
Hello,
i wrote an algorithmn in matlab to analyse data from excel. There just the time and the velocity which is a measurement from a sensor.
Now i want to apply the algorithmn on just 50 data points from the big data sheet. After that (maybe after 1 sec) the next 50 data points should be analysed with the algorithm and so on. The result should be somewhere saved and will be always added with the new result.
I think i can use the algorithmn in simulink with a matlab function block.
Unfortunately i do not know how i can simulate an continuous data input.
Thank you for help!

Risposta accettata

Naman Bhaia
Naman Bhaia il 8 Feb 2019
What I understood from is that you would like to gradually read-in data to an algorithm.
One way to read data into Simulink is with a From Spreadsheet block. Below is a link with more information about this block:
Once the data has been read into Simulink, it is possible to use a Buffer block in order to store it. Below is a link with more information about this block:
The Buffer block will store data up to a fixed limit. Once that limit is reached, that data will all be released simultaneously.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by