| 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 input objects are start, stop, trigger, runtime error, input over-range, and data missed events. Data-available events and timer events are not logged to 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 voice activation example on page 4-32. You can do this by accessing theEventLog property.
events = AIVoice.EventLog
Type field, you can list the events that occurred during this acquisition.
{events.Type}
ans =
'Start' 'Trigger' 'Stop'
Note:
Data field of the trigger event recorded the absolute time the trigger occurred, the number of samples acquired since the start event occurred, the index of the trigger channel, and the trigger number.
trigdata = events(2).Data
trigdata =
TimeStamp: 7.3001e+005
SampleStamp: 19342
Channel: 1
Trigger: 1