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.


Callback function file to execute when RecordsAcquired event occurs


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



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


The group name


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.




Applies to


Data type

character vector, function handle, or cell array


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