https://www.mathworks.com/help/slrealtime/api/slrealtime.instrument.getbuffereddata.html
getBufferedData - Gets data from the real-time application instrument buffer - MATLAB
This MATLAB function gets data from a buffer in a variable on the MATLAB development computer for real-time application instrument.
from thereal timegetsdata