Hi, I work in a lab that uses Java to control a light array. I have very little experience with Java. We're currently using the script below that runs for 6 hours. I have been trying to extend the run time to 12 hours. I tried changing the condition to " i < 1440 " and it will not compile. It says "Compiling.... Infinite loop in code." Ultimately, I would like it to loop for 12hrs then keep the light intensity at "0" for 12hrs and repeat that indefinitely. Can anyone help? Thanks in advance.
/**
* License header here
*/
/**
* New Script
*/
light=390
dark=0
time="180s"
limit = 3000;
for (var i = 0; i < 720; i++){
set_intensity(54)
wait("1s")
set_intensity(107)
wait("1s")
set_intensity(255)
wait("1s")
set_intensity(2000)
wait("2s")
set_intensity(255)
wait("1s")
set_intensity(107)
wait("1s")
set_intensity(54)
wait("1s")
set_intensity(0)
wait("22s")
}