Help! And issue for using LEGO Light Sensor!!

I am using LabVIEW to program the light sensorr, but according to my test, I can’t use a loop to let the robot walking on the black line!! So can anyone give me some supports? Thank you

[email protected]