Data Acquisition Toolbox    
showdaqevents

Display event log information

Syntax

Arguments

obj
An analog input or analog output object.
index
The event index.
struct
An event structure.
out
A one column cell array of event information.

Description

showdaqevents(obj) displays a summary of the event log for obj.

showdaqevents(obj,index) displays a summary of the events specified by index for obj.

showdaqevents(struct) displays a summary of the events stored in the structure struct.

showdaqevents(struct,index) displays a summary of the events specified by index stored in the structure struct.

out = showdaqevents(...) outputs the event information to a one column cell array out. Each element of out is a string that contains the event information associated with that index value.

Remarks

You can pass a structure of event information to showdaqevents. This structure can be obtained from the getdata function, the daqread function, or the EventLog property.

As shown below, you can also display event information via the Workspace browser by right-clicking a device object and selecting Explore -> Show DAQ Events from the context menu.

Example

Create the analog input object ai for a sound card, add two channels, and configure ai to execute three triggers.

Start ai and display the trigger event information with showdaqevents.

See Also

Functions

daqread, getdata

Properties

EventLog


  setverify size