Main Content


Specify MATLAB file executed when specified number of frames have been acquired


The FramesAcquiredFcn specifies the MATLAB® file function to execute every time a predefined number of frames have been acquired.

A frames acquired event is generated immediately after the number of frames specified by the FramesAcquiredFcnCount property is acquired from the selected video source. This event executes the MATLAB file specified for FramesAcquiredFcn.

Use the FramesAcquiredFcn callback if you must access each frame that is acquired. If you do not have this requirement, you might want to use the TimerFcn property.

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




Data type

Character vector, function handle, or cell array


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