Main Content

TriggerFcn

Specify MATLAB file callback function to execute when trigger event occurs

Description

The TriggerFcn property specifies the MATLAB® file callback function to execute when a trigger event occurs. The toolbox generates a trigger event when a trigger is executed based on the configured TriggerType, and data logging is initiated.

Under most circumstances, the MATLAB file callback function is not guaranteed to complete execution until sometime after the toolbox sets the Logging property to 'on'.

Trigger event information is stored in the EventLog property.

Characteristics

Access

Read/write

Data type

Character vector, function handle, or cell array

Values

The default value is an empty matrix ([]).

See Also

Functions

trigger

Properties

EventLog, Logging