This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Initiate data logging




trigger(obj) initiates data logging for the video input object obj. obj can be either a single video input object or an array of video input objects.

The trigger function

  • Executes the object's TriggerFcn callback

  • Records the absolute time of the first trigger event in the object's InitialTriggerTime property

  • Configures the object's Logging property to 'On'

obj must be running and its TriggerType property must be set to 'manual'. To start an object running, use the start function.

The trigger event is recorded in the object's EventLog property.


The trigger function can be called by a video input object's event callback.

obj.StartFcn = @trigger;

Introduced before R2006a