I would like to get the real-time live data stream via a serial port (by fread) from sensor and then I want to evaluate the data for fft analysis. Currently, I am doing it by a "for loop" and for each iteration in the "for loop", I am always losing some real-time live data in the fread due to process it in the fft.
So, could you please suggest me that how can I overcome this issue without discard any data due to processing time in the fft? --Is it possible to solve this issue by matlab script or any alternative way like simulink model or data acquisition toolbox or ...? I am looking forward to hearing from you in details.
Thanks in advance.