| Image Acquisition Toolbox | ![]() |
Store information about events
Description
The EventLog property is an array of structures that stores information about events. Each structure in the array represents one event. Events are recorded in the order in which they occur. The first EventLog structure reflects the first event recorded, the second EventLog structure reflects the second event recorded, and so on.
Each event log structure contains two fields: Type and Data.
The Type field stores a character array that identifies the event type. The Image Acquisition Toolbox defines many different event types, listed in this table. Note that not all event types are logged.
The Data field stores information associated with the specific event. For example, all events return the absolute time the event occurred in the AbsTime field. Other event-specific fields are included in Data. For more information, see Retrieving Event Information.
Characteristics
| Access |
Read only |
| Data type |
Structure array |
| Values |
Default is empty structure array. |
Example
View the event log to see which events occurred.
View the data associated with a trigger event.
elog(2).Data
ans =
AbsTime: [2003 2 11 17 22 18.9740]
FrameMemoryLimit: 12288000
FrameMemoryUsed: 0
FrameNumber: 0
RelativeFrame: 0
TriggerIndex: 1
Properties
| ErrorFcn | FrameGrabInterval | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |