Serial Communication Problem - Simulink/Arduino

Edison, I didn't think about millis().

Regarding the resolution, I need something between 80 and 250 (8 bit resolution). This is one of my controlled variables. It must change the value based on the control law every second.