Launcher Programming

Have no idea what you are talking about . What are you launching , missiles ?

How should i program it on my launcher/shooter?

Obviously , you are new here so let me explain the drill.
You start by giving a summary of your project.
For example"
"I am building a {whatever]
"I am using the following sensors: [list sensors]
"I have no programming experience and need direction on where or how to start"
"I am using a [identify arduino uController you are using]
"Please advise if I need anything else"
Post datasheets and /or vendor links for the sensors you are using.
If you have a circuit, draw a schematic with pen and paper and take a photo with a cell phone and post it"
If you have any code , post it using the "#" CODE TAGS tool button above just to the left of the QUOTE button.

What sensors ?

and what are light barriers?? are they infrared sensors?

Yes, they are opto-electronic sensors

Light curtains are supplied as a pair with a transmitter and receiver. The transmitter projects an array of parallel infrared light beams to the receiver which consists of a number of photoelectric cells. When an object breaks one or more of the beams a stop signal is sent to the guarded equipment.

The light beams emitted from the transmitter are sequenced, one after the other, and pulsed at a specific frequency. The receiver is designed to only accept the specific pulse and frequency from its dedicated transmitter. This enables the rejection of spurious infrared light and thus enhances their suitability as components within a safety system.

Typically, light curtains are connected to a safety relay which will remove motive power from the hazard in the event that an object is detected. Safety relays can be provided with muting functionality which enables the temporary disabling of the safety function to allow objects to pass through the light curtains without tripping the safety relay. This is particularly useful for machinery which has some semi-automatic procedures.

Light barriers, commonly referred to as "light curtains" are an industrial safety device that cordons off an area of the production floor where dangerous moving machinery is operating.

http://www.flexibleindustrial.com/FI-Products/OMRON-STI-MS4800-Series-Light-Curtains-Category/Omron-MS4800S-30-0840?gclid=CJPW2N6Io74CFQGTfgodHmcA8A
http://www.ia.omron.com/products/family/1960/

I hope you weren't asking because you were thinking about making your own light curtains. They have have to be fabricated using
very precise machining to ensure the transmitters and receivers are perfectly aligned. It is next to impossible to make them work
with such manufacturing procedures due to the tight tolerences in positioning of the sensors. Unless you have access to CNC equipment , the chance of you making your own and getting it to work is very small. I could envision a trained machinist building a hand made one with a good drill press with precision clamping guides but short of that, forget it. I've calibrated an Omron light curtain and it took at least an hour.[/list]