Data Acquisition Toolbox    

How Many Triggers Occurred?

You can find out how many triggers occurred with the TriggersExecuted property value. The trigger number for each trigger executed is also recorded by the EventLog property. A convenient way to access event log information is with the showdaqevents function.

For example, suppose you create the analog input object ai for a sound card and add one channel to it. ai is configured to acquire 40,000 samples with five triggers using the default sampling rate of 8000 Hz.

TriggersExecuted returns the number of triggers executed.

showdaqevents returns information for all the events that occurred while ai was executing.

For more information about recording and retrieving events, refer to Recording and Retrieving Event Information.


  Repeating Triggers When Did the Trigger Occur?