MATLAB Answers


How to increase speed of startForeground() in data acquisition toolbox

Asked by Chaitanya Jha on 29 Aug 2019 at 9:44
Hi everyone,
I am working on a project where I am using NI DAQ board NI-USB 6221 for data acquisition. If I try to acquire a 50 ms data using startForeground() function the total time consumed by this function is around 250 ms. I was wondering if there is any way that I can decrease the time required from 250 ms to something around 100 ms? My idea is that maybe I can use a different function instead of startForeground() but the only other function mentioned on Matlab website that can do this job is startBackground() which requires me to setup listeners and given the data processing that I am doing this will not be a good idea. So I am hoping that there might be an internal Matlab function which is not mentioned on Matlab website that I can use to decrease my acquisition time or I am even ready to make my own function but I am not sure where to start.


Sign in to comment.

0 Answers