RobotStudio event

Spot Laser

Hello,

I was wondering if anyone had a example of the necessary programming in rapid code to turn on/off a spot laser as well as being able to read the data from the analog input?

Thank You!