connecting dc 12v with arduino simulink

hi everyone

my circuit including : 12 volt DC pump , L293D, ultrasonic sensor.

the ultrasonic sensor and the pump are connected to a water tank.

what i'm trying to do is to operate the pump by PWM and to get a graph of the level change by Simulink.

the image of the circuit and the simulink are attached

the electric circuit is working excellent but i don't know how to operate it with simulink

is somebody can help me?

Thanks

cyrcet.zip (157 KB)

Simulink is a Mathworks product. Go talk to them or take a tutorial.