I want to know how data acquisition toolbox works after 'start(ai)'
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
xiaobo wu
el 9 de Abr. de 2014
Comentada: xiaobo wu
el 9 de Abr. de 2014
Usually, we write a simple data acquisition program like this:
ai=analoginput('windsound');
addchannel(ai,1);
set(ai,'SampleRate',8000);
set(ai,'SamplesPerTrigger',20000);
set(ai,'TriggerType',Inf);
start(ai)
data=getdata(ai,20000);
delete(ai)
clear ai
I am not clear what will happen after execution of start(ai);
Make a guess, after execution of start(ai), the program starts to acquire sound signal and save into the hard drive. 'data=getdata(ai,20000)' will withdraw data from hard drive file to 'data'.
So if I do not execute 'delete(ai)' and 'clear ai' right away, this program will still acquire signal into the hard drive. My guess is correct? Which file should be the saved data after execution of start.
Thank you
0 comentarios
Respuesta aceptada
Walter Roberson
el 9 de Abr. de 2014
The data will not be saved to the hard drive: it will be saved into memory.
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!