Data acquisition: "dead" time with multiple immediate triggers
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
My question pertains to the "dead" time mentioned on the last bullet point under "Tips" on the page:
Here is my code:
ai=analoginput('nidaq','Dev1');
ai.SampleRate=1000;
ai.SamplesPerTrigger=round(ai.SampleRate*20);
ai.TriggerType='Immediate';
ai.TriggerRepeat=3;
addchannel(ai,0:1);
start(ai)
wait(ai,90)
[data,time,abstime,events]=getdata(ai,(ai.SamplesPerTrigger*...(ai.TriggerRepeat+1)));
Here is a snippet of the "time" variable from the workspace.
19.9960000000000
19.9970000000000
19.9980000000000
19.9990000000000
NaN
20
20.0010000000000
20.0020000000000
20.0030000000000
The Nan obviously indicates the "dead" zone between the end of the first trigger and the start of the second one. However, there seems to be no "dead" time. The first sample of the second trigger has a time-stamp of 20.0 seconds. If there was "dead" time, the first sample should have been collected at 20.001 seconds.
Why does the "dead" time not show up? Is the issue of "dead" time dependent on acquisition rate? Is it that higher acquisition rates will be more likely to have "dead" time?
0 Commenti
Risposte (1)
Walter Roberson
il 20 Ago 2013
Is the NaN deadtime? And not an occurrence of the tip above the one you refer to,
If multiple triggers are included in a single getdata call, a NaN is inserted into the returned data and time arrays and the absolute time returned is given by the first trigger.
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!