Hello. I'm thinking to limit my application usage to certain hours. I'm doing a vehicle's license plate recognition to trace cars that enter an area during office hours. I'm using a IR signal sensor that will detect the incoming and outgoing cars. The IR device is connected to serial port. So i want my application to start on 8 a.m and end at 5 p.m , that is the working hour in my place. So i think i should write the program according to the clock in the system. I think i can do 2 things :
1) disconnect the serial port connection from my application. So when sensor is disconnect, no car will be detected.
2) shutdown the application.

Do any of you have suggestion on how to do it? Thanx.