Using "from file block" not working
Mostrar comentarios más antiguos
Hi,
I'm trying to plot (using Scope) in Simulink the values of a potentiometer and the time this data was recorded from a .mat file from Matlab. My intention is to do something more complex but I have to understand how the block works. It looks easy but I cannot get Simulink running more than 10 seconds and the timestamps are 152 seconds.
I explain the steps I did and maybe you can guess where is my error:
Well, first of all here it is my easy block and scope, easy:

The block parameters are the following ones:

The .mat file is as follows:



The thing is that when I do the simulation it only makes this:
As you can see it only runs until 10 seconds and I want Simulink to plot every point of data of the second row with the matching point of time of the first row but I can't find the way.

Thank you in advance
Respuestas (2)
Fangjun Jiang
el 30 de Ag. de 2019
0 votos
Change your simulation "Stop Time" from 10 (default) to whaever you want.
1 comentario
David Rojas
el 30 de Ag. de 2019
David Rojas
el 31 de Ag. de 2019
0 votos
Categorías
Más información sobre Modeling en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


