Main Content

flush

Flush the host buffer

Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.

Description

flush(sensorobj) clears the buffers and resets the start time.

Input Arguments

collapse all

The sensor object with the default or specified properties.

More About

collapse all

Code Generation Using MATLAB Function Block

  • Use flush in a MATLAB® Function block with the Simulink® Support Package for Arduino® Hardware to generate code that can be deployed on Arduino Hardware.

  • flush does not reset the start time.

Version History

Introduced in R2019a