I have a loop of reading Voltages from Arduino (with a specific sampling rate and clock Frequency).
When I read data without plotting (loop include only the fread/fscanf and i++), the data appears without any problems.
Once I add rolling plot to display the acquired data, the signal will be lost at a sudden and the program stops. Any clarification for that?
If there exist a sample code for multi-threading to plot and perform data acquisition in the same time, I would be very grateful.
Thank you!