I am trying to implement a basic filter and RMS to DC conversion in Simulink and then upload that to an Arduino. So far my experimentation with the RMS conversion has been going well. I've now added the filter and found an issue. The output from the filter is a continuous signal whilst the RMS requires a discrete signal. I try to add a Zero Order Hold module to system and all hell breaks loose when I try to program the Arduino. I have attached screenshots of my model and the error code.
Any advice?
Thanks.