Main Content


Release the sensor object

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


release(sensorobj) stops the data collection from the sensor, clears the buffer, and resets the start time and sets the number of overrun samples to 0.

Input Arguments

collapse all

The sensor object with the default or specified properties.

More About

collapse all

Code Generation Using MATLAB Function Block

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

  • release does not reset the start time.

Version History

Introduced in R2019a