Using "from file block" not working
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposte (2)
Fangjun Jiang
il 30 Ago 2019
Change your simulation "Stop Time" from 10 (default) to whaever you want.
Vedere anche
Categorie
Scopri di più su Sources in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!