Automatic sensor calibration in simulink

Hi all, i'm reading data from a sensor attached to an arduino mega using a s-function to get the data directly from arduino to simulink ... but when the sensor is not moving it give me a value around zero so in every execution of the model i must calibrate the sensor .. So i was wondering if i can set automatic calibration in simulink to calibrate automatically the sensor , for example in the first 5 minutes so that i will not need to set the offset every time
thanks a lot

2 Kommentare

chfakht chfakht
chfakht chfakht am 23 Mär. 2015
Daniel Berger
Daniel Berger am 19 Mai 2016
Is the Problem now solved? I have the same problem. How can i calibrate the Sensor, when i start the program?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Produkte

Gefragt:

am 23 Mär. 2015

Kommentiert:

am 19 Mai 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by