| Data Acquisition Toolbox™ | ![]() |
For all trigger types, InitialTriggerTime records the time when Logging or Sending is set to On. The absolute time is recorded as a clock vector.
You can return the InitialTriggerTime value with the getdata function, or with the Data.AbsTime field of the EventLog property.
Usage | AI, AO, Common to all channels |
Access | Read-only |
Data type | Six-element vector of doubles |
Read-only when running | N/A |
The value is automatically updated when the trigger executes. The default value is a vector of zeros.
Create the analog input object ai for a sound card and add two hardware channels to it.
ai = analoginput('winsound');
chans = addchannel(ai,1:2);After starting ai, the trigger immediately executes and the trigger time is recorded.
start(ai)
abstime = ai.InitialTriggerTime
abstime =
1.0e+003 *
1.9990 0.0020 0.0190 0.0130 0.0260 0.0208To convert the clock vector to a more convenient form:
t = fix(abstime);
sprintf('%d:%d:%d', t(4),t(5),t(6))
ans =
13:26:20![]() | Index | InputOverRangeFcn | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |