| Data Acquisition Toolbox | Search  Help Desk |
Recording and Retrieving Event Information
For some of the events listed above, certain information is automatically stored in theEventLog property. EventLog is a structure that contains two fields: Type and Data. The Type field contains the event type. The event types that are logged for analog output objects are start, stop, trigger, runtime error, and out-of-data events. Data-output events and timer events are not stored in EventLog.
The Data field contains the event-specific subfields shown below.Example: Retrieving Event Information
Suppose you want to examine the events logged for the example on page 5-26. You can do this by accessing theEventLog property.
events = AO.EventLog
Type field, you can list the events that were recorded while the data was output.
{events.Type}
ans =
'Start' 'Trigger' 'Stop'
Note:
Data field of the trigger event recorded the absolute time the trigger occurred, the number of samples output from when the start event occurred and the trigger occurred, and the trigger number.
trigdata = events(2).Data
trigdata =
TimeStamp: 7.3001e+005
SampleStamp: 0
Trigger: 1