check the link below for controlling with labview and arduino
In this project , water depth is measured using ultrasonic sensor and the condition for turning ON and OFF the motor are programmed , In this case it was programmed to turn ON when the depth goes beyond 25cm and turn OFF when the depth below 10cm. Ultrasonic sensor placed at the top of the motor , very simple and easy to use automatic motor controller,
https://www.labviewarduino.in/2014/12/automatic-water-level-controller-using.html check the link for code and circuit diagram
Post time: Aug-31-2017