Sorry if i don't understand you or you me because of my english is not so good, and i am not that tehnical about this stuff.
When input raise 0.3V over 2.5V (which will be refferent fluid level), then out must decrease so that motor pumps water slower.
0.3V raise is done in 2 seconds.
Yes it is for real time simulation.
I must control water level in one tank. Motor is pumping water, and water is flowing out through manual valve. And pressure sensor is there to "see" water level.
So my system must fill tank with water and then control level fluid to be lets say around 30-32cm...
I need to use the Matlab for controling water pump speed which will control water level in a small tank. Water pump (windshield-water pump, 12v) is connected to DC-DC converter controller which is control by Matlab (0-5V).
Water level is messured by pressure sensor and this is INPUT.
So this is...