simulation of a continuous data input (in Simulink)

1 visualización (últimos 30 días)
Tom Bedkowski
Tom Bedkowski el 30 de En. de 2019
Respondida: Naman Bhaia el 8 de Feb. de 2019
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!

Respuesta aceptada

Naman Bhaia
Naman Bhaia el 8 de Feb. de 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.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by