how to Stabilize Analog Read value on simulink?

How to stabilize analog read value on simulink in real time simulation using arduino due. i tried using "running rms" block but its not stabilized yet. do you have any solution ?

Answers (1)

It looks like you're holding the Running RMS block in reset, based on the switch configuration in your screenshot. If that is the case, you'll want to try setting the "Reset" input to the "Running RMS" block to 0 rather than 1.

5 Comments

I haven't reset it but the analog value is still unstable, but when I use Arduino IDE the analog value reading is stable, is there any other solution?
Some more information might be useful:
Could you include a screenshot of the block parameters for your RMS block?
Could you include screenshots of the input and output data?
Is your running RMS reset input being held at an input of 1 or 0 during simulation?
input data in the form of an analog value from the current sensor
Daniel
Daniel on 13 Apr 2023
Edited: Daniel on 13 Apr 2023
Could you post a screenshot of the output data as well? That would help me get a better idea what you're referring to with stability.

Sign in to comment.

Categories

Products

Release

R2022b

Asked:

on 11 Apr 2023

Edited:

on 13 Apr 2023

Community Treasure Hunt

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

Start Hunting!