How to plot multiple streams of data in real-time?
Mostrar comentarios más antiguos
Through 3rd party software that came with a Matlab plugin, I am able to collect and call data from a file that is being populated in real time. The data being populated includes heart rate, blood pressure and ECG.
I want to know how to plot this live feed. It is being collected in real time, so ideally all 3 data streams should be plotted on the same time axis.
So far, I can call the file intermittently and see the latest data values in column format.
Thank you
7 comentarios
Geoff Hayes
el 16 de Ag. de 2014
Abdul-Kareem - how are you calling this file intermittently? Have you written a script or function that started a timer that would read data from this file periodically? If so, then with that data you can create three plots on the same figure (see subplot) and just update each plot with new data as you receive it.
Abdul-Kareem
el 16 de Ag. de 2014
Geoff Hayes
el 16 de Ag. de 2014
Is the latest data appended to the file, or is the file replaced with new data? What is the update rate of the file (by the 3rd party software)? What is the format of the file (can you attach it)?
Abdul-Kareem
el 16 de Ag. de 2014
Geoff Hayes
el 16 de Ag. de 2014
You could change the extension to txt and upload the file. Do you have any control over how the file is updated (with respect to update rate, removing old content in file, etc.)?
Abdul-Kareem
el 20 de Ag. de 2014
Geoff Hayes
el 20 de Ag. de 2014
For sure, you can use the variables!
Respuestas (1)
Ahmet Cecen
el 16 de Ag. de 2014
0 votos
More details would help. So far, the only thing I can suggest is to check "drawnow".
Categorías
Más información sobre Electrophysiology 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!