microscope-cockpit / cockpit

Cockpit is a microscope graphical user interface. It is a flexible and easy to extend platform aimed at life scientists using bespoke microscopes.
https://microscope-cockpit.org
GNU General Public License v3.0
35 stars 26 forks source link

warning to have a light on for Live view #899

Open LauraA-Octopus opened 2 months ago

LauraA-Octopus commented 2 months ago

Hello, Using microscope and cockpit I noticed that the Live View mode is available only if a Light (even a dummy one) is turned on. I think it could be useful to have a warning on cockpit saying that we need the Light on to be able to use the Live view.

juliomateoslangerak commented 2 months ago

That would make sense.

carandraug commented 2 months ago

Or maybe lift the requirement to have a light source enabled? Why is there that requirement when we have no such requirement for snap? And where does the exposure time comes from when there are no light sources?

iandobbie commented 2 months ago

I think this is exactly the reason for this restriction. In a snap effectively all we do it send a trigger pulse to the camera. In live mode, we actually do some footwork with light-time-pairs to work out which lights to activate and which camera and then trigger them in the appropriate order, but not fast so you get a lot of excess light in live mode.

The snap exposure time is just the last set time for that camera, which is the last set light exposure time in the interface. Not exactly transparent. Even in live mode although the code does some work I don't think you can set different exposure time for different cameras.