What are the different between startforeground and startbackground (Session-Based Interface)?
Show older comments
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 Comment
Hsuan Tse Guo
on 17 May 2017
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.
Answers (0)
Categories
Find more on Data Acquisition Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!