Part 9 Hardware Control
Tucsen · Uploaded · 19:05 · Watch on YouTube
Tucsen's final lesson in its scientific camera series explains how cameras exchange timing signals with other lab hardware through dedicated trigger cables. It covers trigger-in and trigger-out modes and a global-exposure mode that pairs the camera with a triggerable LED or laser to limit rolling-shutter artifacts in microscopy.
Transcript
Captions as a .vtt fileEmbed with the transcript
- 0:01Welcome to the final part of the Mastering Scientific Cameras course from Tucsen.
- 0:09In this final part, part 9, Hardware Control, we're going to be examining some of the ways in which cameras can directly interface with other hardware in your optical setup via hardware triggers.
- 0:22These are dedicated triggering cables which can transmit signals between hardware for two-way communication about timing and synchronisation of events.
- 0:31So, for hardware control, the question is, how does the camera fit into the rest of your setup?
- 0:41How do the different pieces of hardware operate and does there need to be synchronisation and timing of events between them?
- 0:51Tucsen cameras, like many others, offer timing and operation control via hardware triggering.
- 0:57This allows direct communication between hardware components without the software being involved, which is usually a much faster and simpler way to operate.
- 1:07It's mostly used by advanced microscopy and physics applications who need the fastest responses to controls and the most precise synchronisation,
- 1:19either because the experiment really demands this high-speed response or to allow the most efficient experimental operation in terms of time-saving,
- 1:30because you don't have to wait for software to come back and forth and decide what's going on.
- 1:35The hardware can directly talk to each other and burn through an application experiment in the fastest way possible.
- 1:42Some examples of how hardware triggering can allow control and communication between different pieces of hardware might be, for example,
- 1:52synchronising a triggerable light source with a camera, where, for example, we might be using an LED or a laser light source that can be turned on very, very quickly
- 2:02and have that directly controlled by the camera, turning on at only the moment of camera exposure and being off automatically the rest of the time.
- 2:12We can also do things like synchronise with stages and other hardware to tell the camera,
- 2:18OK, our stage movement has finished, now you can take an image and vice versa.
- 2:23The image has finished acquiring, now we can move the stage again.
- 2:27And finally, we might be integrating the camera into a larger instrument setup, maybe even a benchtop experimental setup,
- 2:39and we want to make sure that everything is communicating effectively and efficiently, and everything is operating as fast as it can.
- 2:49So, this hardware control, as I've mentioned, is achieved via hardware triggers.
- 2:54Cameras can send and receive signals, that's electronic signals, via dedicated hardware triggering cables that connect between the camera and other hardware.
- 3:05These signals take the form typically of 0 to 5 volt digital pulses, also known as a TTL pulse.
- 3:13These can indicate the timing of events or the state that a piece of hardware is in, and other things as well.
- 3:20For example, as we saw before, hardware triggering can be used to activate a light source, exactly when the camera is exposing a frame.
- 3:29And this might take the form of a light source that has a trigger in option, where if it receives a 0 to 5 volt pulse,
- 3:41for the duration of that 5 volt high signal, as we'd call it, the light source will be on.
- 3:47And when the signal again drops to 0 volts, the light source will turn off, and the 0 to 5 volt pulses will be delivered by the trigger out options from the camera.
- 4:01Or indeed, the camera itself can be triggered to acquire its frame, exactly as other hardware finishes the action.
- 4:08So, two-way communication is possible, either at the same time, or just one or the other.
- 4:13So, in terms of the triggers into the camera, that control when the camera performs different actions,
- 4:24there's multiple different options for how this can perform, and different applications that this might suit.
- 4:33The way the form that this takes would, of course, be once again a 0 to 5 volt signal coming in,
- 4:39or indeed a 5 volt to 0 volt signal, depending on the polarity of our trigger signals.
- 4:48But we have that graphically represented here, with time on the x-axis,
- 4:52and the voltage being plotted between our 0 volt low signal and our 5 volt high signal.
- 4:58So, this would be a signal coming into the camera from some of the hardware, which has generated this pulse.
- 5:03We have three different behaviours, or I should say, sorry, two different behaviours here,
- 5:09for how the camera can interpret this pulse, and what this would actually mean.
- 5:14We can tell the camera that the rising edge from 0 to 5 volt should trigger the acquisition of an image
- 5:22that we've set up in software.
- 5:25Or, indeed, we can tell it that the falling edge from 5 volt to 0 volt should indicate the timing of that image,
- 5:32which should start that image acquisition.
- 5:35And, again, we can represent this graphically, where the rising edge would start in exposure,
- 5:41that exposure time set by software, or the falling edge can start in exposure.
- 5:47In all of these cases, we do need to begin the acquisition in software to tell the camera to wait for this trigger.
- 5:58What won't happen is if we just load up the camera in software,
- 6:02and then, without doing anything else, just send triggers to the camera and expect images to be acquired,
- 6:08we have to actually start an acquisition in software.
- 6:11So, the software tells the camera to expect a trigger first,
- 6:15but the exact timing of that frame acquiring is then very precisely controlled by this external hardware,
- 6:23which can be very powerful.
- 6:27We have another option as well, which is width trigger.
- 6:31This works similarly to rising edge, except the duration of this trigger pulse sets the exposure time.
- 6:38So, this is no longer set by software, but can be set by external hardware,
- 6:43representing that graphically here.
- 6:45A final option that's available to us, alongside these other options,
- 6:52is to introduce a delay between the trigger event and the exposure start,
- 6:58and that can be added for all of the settings above, and we can set that in software.
- 7:04As mentioned before, though, we need to remember that when operating in these modes,
- 7:09we have to tell the software to expect to receive a trigger,
- 7:13or the camera, I should say, to expect to receive a trigger by beginning an acquisition in software,
- 7:19and then only once it's begun will it expect and act when a trigger signal comes its way.
- 7:29Next, we have the trigger out options for the camera.
- 7:32These are the different options that the camera has for how to communicate with other hardware,
- 7:38with the signal coming from the camera,
- 7:40for the camera to tell other hardware what to do, based on its own state.
- 7:45So, this can involve various properties of the camera's state being indicated,
- 7:52whether it's exposing an image,
- 7:54whether it's reading out and measuring the data that's collected,
- 7:57or whether it's simply waiting for another action to take place.
- 8:01This can be used to control illumination, as in the example earlier,
- 8:05or change hardware conditions between frames.
- 8:08Say we want to change which wavelength we're illuminating with via moving a filter wheel,
- 8:15or we want to change a stage position only once the frame has finished acquiring.
- 8:21We can do that by having the camera tell the other hardware when it's finished the exposure.
- 8:28Or, indeed, we can have external hardware recording very precise hardware timestamps
- 8:37for very precisely controlling the timestamps within an experiment,
- 8:44maybe with other hardware that's also indicating the exact times when things happened
- 8:49for recording very precisely timed experiments.
- 8:53There's multiple options for what trigger signals can be outputted,
- 9:00including, here we'll show them graphically, exposure start.
- 9:05And this is a trigger that will be set to high for a certain duration
- 9:11when the camera begins the exposure of a new frame.
- 9:15And we can set that duration in software.
- 9:18We can see it on the right-hand side.
- 9:20The exposure start begins when the first row of the camera starts to expose.
- 9:27The thing to remember, and I'll explain this diagram briefly,
- 9:31the thing to remember is that these are rolling shutter cameras for the most part.
- 9:35Certainly what's displayed on the diagram is a rolling shutter camera,
- 9:39where, once again, the top row of the camera will start its exposure first,
- 9:44and the last row will start its exposure sometime later.
- 9:49And it will roll down the sensor row by row.
- 9:51That's represented by this diagonal line for the yellow box on the left-hand side.
- 9:59The end of the exposure will then start at the top and roll down in a similar way.
- 10:04So that's what these yellow boxes represent.
- 10:08We have, once again, time on the x-axis,
- 10:11and which row is exposing on the y-axis for this yellow box.
- 10:15And, as we can see, the exposure start is aligned with that first row.
- 10:21When it starts exposing, that's when the camera will send out this trigger.
- 10:26We also have a trigger for readout end,
- 10:31when the camera has completely finished the readout of every line,
- 10:37which will be at the end of the last line of the camera finishing its readout.
- 10:42And, again, we can set the duration of these pulses in software.
- 10:45The next trigger that's available to us is global exposure.
- 10:53And this is a powerful and useful way to operate the camera
- 10:56that can give us a chance to overcome some of the issues
- 11:02that we can sometimes have in some experiments
- 11:04with the rolling shutter operation of the camera via a pseudo-global operation.
- 11:10And we'll explain this in the next slide.
- 11:12But, as with the triggers in,
- 11:16we have the option to add a delay before these triggers are sent out,
- 11:21which we can customize in software
- 11:23to allow better synchronization with other hardware and events.
- 11:28And, as I mentioned,
- 11:29the pulse width for exposure start and for readout end
- 11:33can be specified if they're not defined as they are for the global setting.
- 11:39So, on to this global exposure setting for our triggers.
- 11:46This is an advanced mode of the camera,
- 11:48which allows a pseudo-global operation.
- 11:51We can overcome the effect of this rolling shutter
- 11:57and potential artifacts that might be introduced,
- 12:00either for moving objects or for changes of illumination
- 12:04or changes between frames of our camera.
- 12:08The application where this is expected to be used
- 12:11is if we have complete control over our illumination,
- 12:14as in the case for LED or laser light sources,
- 12:19where we have very precise control over the timing
- 12:22of that light source being off and on,
- 12:24and we can achieve this global shutter effect
- 12:26via controlling the light source with the camera.
- 12:29And, the way that this works is that, in global mode,
- 12:35the trigger high, that 5 volt pulse,
- 12:37which would turn on the light source,
- 12:39is only enabled once every row of the camera
- 12:42is actively exposing.
- 12:45This is explained graphically on the left-hand side here.
- 12:48So, if I start this animation running,
- 12:52the rolling shutter works its way down the sensor,
- 12:56starting the acquisition of every row,
- 12:59and only once every row has started its acquisition,
- 13:04it's exposing to light,
- 13:06does the light source actually turn on.
- 13:08The rolling down of the sensor happens in darkness,
- 13:12so no photons are actually collected.
- 13:15So, there will be no artifacts captured
- 13:17during this rolling process
- 13:19because there's no photons being collected.
- 13:21The light source isn't on.
- 13:22So, with this, we're able to completely rule out
- 13:28this possibility of imaging artifacts for moving samples
- 13:31due to the rolling shutter.
- 13:36And, as you can see, once again,
- 13:38as the light source turns off,
- 13:40then the exposure end and readout rolls down the sensor.
- 13:44So, both of these dynamic stages
- 13:49happen in complete darkness.
- 13:52Only once the image is already formed
- 13:54with the light source on,
- 13:55does the exposure end and readout roll down the sensor,
- 13:58and then the light source is turned off for that time.
- 14:03So, photons are only captured
- 14:05when the sensor is behaving globally.
- 14:08The exposure start and readout happen in darkness.
- 14:11So, once again, we do need to have control
- 14:13over our light source for this to be possible.
- 14:16But this does avoid any possible motion
- 14:19or synchronization artifacts in this case.
- 14:25One thing to note is that there will be dead time
- 14:28between the frames.
- 14:31And that while this rolling process is occurring,
- 14:34we can't be actively acquiring data.
- 14:37But this is only around 10 to 20 milliseconds
- 14:39depending on the speed of the camera.
- 14:42This dead time is simply one divided
- 14:44by the frame rate of the camera
- 14:46in whatever mode we're operating it in.
- 14:50So, this dead time can be really quite short.
- 14:55So, in summary, we looked at hardware triggers.
- 15:00And hardware triggers are what allow communication
- 15:03between cameras and hardware
- 15:05with high precision and high speed
- 15:07via zero to five volt pulses
- 15:09along dedicated triggering cables,
- 15:11again, without the software being involved
- 15:14and having to think things through
- 15:16at whatever speed the computer's operating.
- 15:18The hardware can directly interface with each other
- 15:22at the speed of electronics,
- 15:24which is obviously very quick.
- 15:28Triggers in allow precise control
- 15:30over the moment of exposure start
- 15:32or also over the duration of that exposure.
- 15:35And triggers out allow control and signalization
- 15:45with other hardware, such as light sources.
- 15:48We also looked at this global trigger option,
- 15:53which enables the sensor to be only active
- 15:56while all rows of the sensor are actively exposing.
- 15:59And if this is connected to a triggerable light source,
- 16:05this allows an effective pseudo-global imaging
- 16:08on a rolling shutter camera
- 16:10with all of the advantages for signal-to-noise ratio
- 16:13and speed that a rolling shutter camera brings.
- 16:20So, finally, for the hardware control,
- 16:24we're going to have a look
- 16:25at some examples and applications.
- 16:27So, some examples for hardware triggers
- 16:30might be synchronizing capture with hardware
- 16:35for multi-channel imaging.
- 16:37Like, for example, if we're in fluorescence imaging,
- 16:39we might be iterating through UV, blue and green,
- 16:43and maybe even red illumination
- 16:45to build up a multi-channel image,
- 16:48such as the one on the right-hand side.
- 16:50And we can do this very quickly and efficiently
- 16:52by using hardware triggering
- 16:54to control that light source to say,
- 16:56okay, you can turn on and turn off now.
- 16:59This might be another case
- 17:01where we'd want to use that pseudo-global shutter mode
- 17:04because what we would want to make sure wouldn't happen
- 17:06is that there'd be any overlap between frames
- 17:10where the green frame, for example,
- 17:14might also overlap with some of the acquisition
- 17:17of the blue frame
- 17:18and would have both appearing in the same image.
- 17:21We want to avoid that.
- 17:23So, we can use this pseudo-global shutter mode
- 17:25to mean when there's any overlap between frames,
- 17:27the light source isn't turned on.
- 17:34We can also use triggering
- 17:35to speed up multi-location imaging,
- 17:40including fluorescence,
- 17:41such as spinning disk and focal
- 17:42and light sheet imaging,
- 17:44where triggers in will tell the camera
- 17:46that the X, Y or Z stage has finished moving
- 17:48or that the filter wheel has finished moving
- 17:51if we have one of those in our setup.
- 17:53And triggers out can then control the light sources
- 17:56and tell it that the frame has finished
- 17:58so we can make the next movement
- 17:59and visit the next place.
- 18:01And this can really speed up the acquisition
- 18:03over what software alone would be able to do
- 18:06when controlling these pieces of hardware.
- 18:10We can also use triggering
- 18:12to start exposures at a very specific time
- 18:15in our experiments,
- 18:16such as in laser-induced breakdown spectroscopy.
- 18:19And finally, we can use hardware triggers
- 18:24to connect to other equipment
- 18:26and hardware used to manage the experiments,
- 18:28such as in electrophysiology,
- 18:30neuroscience and cardiology.
- 18:32On the right hand,
- 18:33here we have a patch clamping setup imaged
- 18:36and we can use hardware triggering
- 18:39to synchronize the acquisition of frames
- 18:43with electrical stimulation
- 18:45being delivered to a sample, for example.
- 18:47And this can allow quite versatile control
- 18:50over our experiment.
Обсуждение
Письмо, когда кто-то оставляет комментарий. Аккаунт не нужен.
Рассылка
Получайте нашу бесплатную рассылку о новых приборах, ценах и новостях биотеха.