thanks a lot for your help, i've got to admit that this is my first time with non-void functions, and also first time passing data to them. so i'm a complete newbie about it
and my idea is variating the setpoint with a pot so i can see how the system behaves