Main Content


Release the sensor object


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.


This function is available only with the Sensor Fusion and Tracking Toolbox™and Navigation Toolbox™.

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.

Introduced in R2019a