question

Mike avatar image
0 Likes"
Mike asked Jason Lightfoot edited

How to simulate lightning kind of flash light for millisecond period

Hi, Flashing light.fsm

I would like to make a machine that involves flashing of light inside. Just for better visuallization, is there any way to make flashing of light for millisecond. For example, I want to flash light below the conveyor as soon as the part stop or arrive at the station. Could someone help me if this can be done and appreciated if you could do a simple sample in my model? Thanks a lot.

FlexSim 23.1.1
flashing light
flashing-light.fsm (38.3 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image
2 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Here's an example by changing the intensity of one of the light objects.

flashing-light_jl.fsm

Warning: contains flashing lights.

For the timing you need to consider how fast your model is running and the framerate at which the model is repainting the window. Running realtime and pulsing the light for just one millisecond at 60fps is probably not going to show the flash. You could alternatively quench the light as part of the onDraw, allowing at least a frame or two to be drawn.


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

David Chan avatar image David Chan commented ·
Nice work!
1 Like 1 ·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered

About 12 years ago students set a shape visible for a short time. They resized the shape in steps randomly in such periods fast. This looked quite realistic for welding flashes.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.