What are the different between startforeground and startbackground (Session-Based Interface)?

Hi,
I'm trying to use DAQ NI USB 6008. In help session, I found that 64bit MATLAB can import/export the data by using creatSession of my DAQ, then addAnalogInputChannel .
I wonder what are the different between startforeground and startbackground ?
I already try 2 of them, i'm placing startforeground in while loop to make it run all the time but the data has some delay. Then i try to use startbackground and set IsContinuous = true
Then i'm adding addlistener('DataAvailable', @event) but i'm not sure how this event work in the loop.
*Can i call the variables in the event out to my main editor page ?
And how the function(i mean loop) of addlistener and IsContinuous = true work ?
And if i want to measure the time when the data transfer where do i place tic and toc in case of startbackground ?*
Thanks,

1 个评论

me 2 have some delay when I use startforeground.
It seem need more time than using start(AI). I would like to know is the problem of Matlab or something.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Data Acquisition Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by