Plotting new data as the data file is appended

2 vues (au cours des 30 derniers jours)
Patrick Lydon
Patrick Lydon le 27 Juil 2017
Commenté : Wilson A N le 3 Août 2017
Hi, I am acquiring electro-chemistry data for a project. The data will be collected on one computer and spooled over to another computer where it will be analyzed by MATLAB. Currently, we analyze all the data after it is all collected, but we would like to do the analytics while the file is still being appended. My thoughts on how to solve this: data is being captured, sent to the MATLAB computer and the computer plots the data, after 5 seconds, MATLAB gets the new appended file, goes to the end of the file and plots the new data, another 5 seconds elapses (this time is somewhat arbitrary at this point), matlab gets the new file and goes to the end of the file and plots the new data, repeat repeat repeat. This seems like a common thing to do, any advice would be greatly appreciated since I am new to the MATLAB world. Is there a certain function I could utilize to make this process easier? Maybe something in the File Exchange that someone knows about. Or maybe you could suggest me another method that would be better, but I am just a beginner on matlab so I don't know too much. Thank you to all willing to help.
  1 commentaire
Wilson A N
Wilson A N le 3 Août 2017
Can you please specify how you are sending the data.
Are you transferring the data over to the computer and then a MATLAB instance there reads it? Or is the case that you are having an application program that uses MATLAB object to process data in MATLAB?
Also, are you analyzing the whole data file each time you obtain it?
If yes, then I think you use XData and YData to update the plot.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Graphics Performance dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by