Control of laser by serial