Image Acquisition Toolbox Previous page   Next Page
EventLog

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.

Event Type
Description
Included in Log

Error

Run-time error occurred. Run-time errors include timeouts and hardware errors.
Yes

Frames Acquired

The number of frames specified in the FramesAcquiredFcnCount property has been acquired.
No
Start
Object was started by calling the start function.
Yes
Stop
Object stopped executing.
Yes
Timer
Timer expired.
No
Trigger
Trigger executed.
Yes

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

Create a video input object.

Start the object.

View the event log to see which events occurred.

View the data associated with a trigger event.

See Also

Properties

Logging


Previous page  ErrorFcn FrameGrabInterval Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS