title: Data Aquisition and plotting simultaneously on Matlab
body: <p>I have a loop of reading Voltages from Arduino (with a specific sampling rate and clock Frequency). </p>
  
  <p>When I read data without plotting (loop include only the fread/fscanf and i++), the data appears without any problems.</p>
  
  <p>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?</p>
  
  <p>If there exist a sample code for multi-threading to plot and perform data acquisition in the same time, I would be very grateful.</p>
  
  <p>Thank you!</p>