Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

StartFcn

Callback function file to execute immediately before logging starts

Description

You configure StartFcn to execute a callback function file when all prelogging steps have been completed. You start logging by calling the start function. A start event occurs immediately before Logging is set to 'on'.

When a start event occurs, the function specified in StartFcn is passed two parameters: Obj and EventInfo. Obj is the object associated with the event, and EventInfo is an event structure containing the fields Type and Data. The Type field is set to 'Start'. The Data field contains a structure with the fields given below.

FIeld Name

Description

LocalEventTime

The time, as a MATLAB® date vector, that the event occurred.

GroupName

The group name.

RecordsAcquired

The number of records acquired in the current logging session at the time the event occurred.

Start event information is stored in the EventLog property.

Characteristics

Access

Read/write

Applies to

dagroup

Data type

character vector, function handle, or cell array

Values

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

See Also

Functions

start

Properties

EventLog, Logging

Was this topic helpful?