RecordsAcquiredFcn

Callback function file to execute when RecordsAcquired event occurs

Description

You configure RecordsAcquiredFcn to execute a callback function file when a records acquired event is generated. A records acquired event is generated each time the RecordsAcquired property reaches a multiple of RecordsAcquiredFcnCount.

When a records acquired event occurs, the function specified in RecordsAcquiredFcn 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 'RecordsAcquired'. The Data field contains a structure with the fields defined 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

Records acquired event information is not stored in the EventLog property.

Characteristics

Access

Read/write

Applies to

dagroup

Data type

String, function handle, or cell array

Values

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

Was this topic helpful?