Plotting new data as the data file is appended

1 view (last 30 days)
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 Comment
Wilson A N
Wilson A N on 3 Aug 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.

Sign in to comment.

Answers (0)

Categories

Find more on Simultaneous and Synchronized Operations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!