Real Time Data Acquisition in MATLAB(serially)

Discussion in 'Programmer's Corner' started by lijoostenk, Oct 10, 2013.

  1. lijoostenk

    Thread Starter New Member

    Jan 25, 2013
    Hello.It has been a long time since I logged on........
    While acquiring data serially (Instrument Control Toolbox) in matlab from a microcontroller using the fread function, it takes one second to transfer data from the input buffer to the matlab workspace. A delay of one second is a very high while doing real time data acquisition because some of my values get lost.
    Is there any way to decrease this delay drastically so that real time plotting becomes more meaningful?
  2. MrChips


    Oct 2, 2009
    Please provide us with some numbers.

    What is the serial baud rate?
    What is the number of data points per second transfered?
    How many bits per data point?
    What is the size of the buffer?
    What is the model number of your CPU?
    What OS are you running?
    What is the clock frequency of your computer?