huh?
what does "creating dc voltage source to an ac voltage output" possibly mean? You need to learn english sentence structure.
light is DC, output of a solar panel is DC.
You can interrupt the light mechanically and get a pulsed DC output. But easier to do that at the DC level.
.