A system and method is provided for attenuating a light signal. One embodiment
includes a method for causing optical attenuation in a waveguide, where the waveguide
has an input port for receiving a light signal and an output port for output of
an attenuated light signal. First, an electric field is generated in at least a
portion of the waveguide, such that a first refractive index in that portion of
the waveguide is changed to a second refractive index. Next, the light signal in
the waveguide is directed from the input port to the output port through the electric
field. And lastly, the light signal is attenuated as a function of the electric
field. The light signal may be attenuated, for example, by changing the deflection
angle, changing the beam collimation width or from emitting part of the light signal
from the waveguide before the light signal reaches the output port.