Hello Zhong,
If your light source driver has analog control, you'd need an analog-capable output channel. I'd recommend the Analog Output Module. You can load any voltage waveforms you want to play, and trigger them from any state.
State Machine r2+ also has this capability via its FlexI/O interface, though each voltage is specified by a unique state or global timer, so automating gradual rising and falling would complicate your state machine description significantly.
Josh