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 comentario

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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Data Acquisition Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 5 de Mzo. de 2015

Comentada:

el 17 de Mayo de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by