Quality check camera Light on/off

Hi there,

I would like to implement a blinking light that turns on only when the robot brings an object under the Quality Check Camera, stays on for 2 seconds, and then turns off.

While searching the forum, I found references to the vcLight class. However, I couldn’t find any tutorials or training videos explaining how to use it.

If anyone has experience with vcLight or knows how to implement this behavior in Visual Components,

I would greatly appreciate your advice. Thank you!

vcLight is similar to the effect of scene lighting, often used for illumination or making objects self-illuminate.
However, based on your actual needs, this approach may not be necessary. To create an indicator light effect, we don’t necessarily need to actually turn on a light; instead, we can express the lighting effect by modifying the material’s characteristic color.
If you also need an effect similar to a line scan camera light, you can create a trapezoidal or frustum-shaped feature and use methods such as Sx(num).Sy(num).Sz(num)/Switch/Python Script to achieve the appearance and disappearance of the light.

Hi,

In addition to what @BAD said, the quality check camera should also have a property called “lights on” or something similar. By ticking this option, it should make a transparent cone appear from the quality check camera that points downwards. You could use PM statements to toggle this property, or use python.

br,
lefa

2 Likes