- It is possible to perform real-time analysis and plotting of recorded data while it is being recorded. One way to achieve this is to use a fixed frequency loop that reads a chunk of data from the hard drive at each iteration and performs the analysis and plotting on that chunk. The loop can then sleep for a fixed period of time before reading the next chunk of data. This approach requires careful tuning of the loop frequency and chunk size to ensure that the analysis and plotting can keep up with the data rate.
- The readmemory function in MATLAB is designed to read data from the memory of another process or the operating system. It is not designed to read data that is being written to the hard drive. To read data from the hard drive in real-time, you can use functions such as fread or h5read to read chunks of data from the recorded file at each iteration of the loop.
- MATLAB Real-Time Workshop: https://www.mathworks.com/academia/student-competitions/real-time-workshop.html
- MATLAB Real-Time Data Acquisition: https://www.mathworks.com/help/daq/real-time-data-acquisition.html
- MATLAB Real-Time Data Analysis and Visualization: https://www.mathworks.com/help/matlab/real-time-data-analysis-and-visualization.html