Plotting new data as the data file is appended
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
Wilson A N
2017-8-3
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.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simultaneous and Synchronized Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!