Data Acquisition Toolbox | ![]() ![]() |
When Did the Trigger Occur?
You can return the absolute time of the trigger with the InitialTriggerTime
property. Absolute time is returned as a clock
vector in the form
For example, the absolute time of the trigger event for the preceding example is
abstime = ao.InitialTriggerTime abstime = 1.0e+003 * 1.9990 0.0040 0.0170 0.0100 0.0430 0.0252
To convert the clock
vector to a more convenient form, you can use the sprintf
function.
t = fix(abstime); sprintf('%d:%d:%d', t(4),t(5),t(6)) ans = 10:43:25
As shown in the preceding section, you can also evaluate the absolute time of the trigger event with the showdaqevents
function.
![]() | How Many Triggers Occurred? | Device-Specific Hardware Triggers | ![]() |