[OpenSPIM] SPIM with no laser control

Luke Stuyvenberg stuyvenberg at wisc.edu
Wed Oct 2 16:48:43 CDT 2013


Aurelia,

Is the ThorLabs shutter set as the default shutter for your setup? (i.e. does it respond to Micro-Manager's auto-shutter functionality?) This is specified during hardware configuration. If so, please attach a core log (any should do, as long as you got the 'setup is invalid' warning) -- the SPIM device manager should be trying to use it as a laser; if this isn't happening, an exception may be appearing in the core log. If the issue is as simple as this, I may be able to fix it with minimal work, which is arguably preferable to the alternative.


The alternative: Although the ThorLabs shutter *should* be supported as a 'generic laser', it is possible to specifically add support for the device, though it requires some Java programming. If you're already familiar with our development environment (see http://openspim.org/How_to_build_the_software -- fair warning: setting up the development environment can take some time), the place to start is plugins/SPIMAcquisition/src/main/java/; in here are various files like PicardStage.java and CoherentCube.java. I recommend reading the top of PicardStage.java for an explanation of the block at the top of the class, then copying and renaming CoherentCube.java to i.e. ThorLabsShutter.java. Rename the contained class and change the string "CoherentCube" to the appropriate device name -- according to the device adapter source code in DeviceAdapters/ThorlabsSC10/, the right string is "SC10" -- and change the rest of the functions however you see fit.


Thanks,
Luke

On 10/01/13, Aurelia Honerkamp-Smith  wrote:
> Hi everyone, 
> 
> 
> I guess now is a good time to mention that I built my SPIM using a laser line we already had instead of purchasing the Coherent Cube, by diverting the existing line to the SPIM with a flip mirror and a periscope. Laser power control is manual. The fact that I have no laser connected is causing a problem for SPIM acquisition, though. I get an error message that my setup is invalid when I first start the plugin; then, although acquisition through the Video tab works OK, I can't acquire a regular stack or timelapse: I get "Error acquiring: null" when I push the Oh Snap button. I need to change the plugin so that it ignores the laser power control, and uses a Thorlabs shutter for blinking instead of the laser. I realize this might be a tall order, so I'm ready to start working on it myself, but I would appreciate being pointed in the right direction for how to do this most efficiently. 
> 
> 
> Thanks again, 
> Aurelia
> 
> 
> 
> On Fri, Sep 27, 2013 at 12:03 PM, Aurelia Honerkamp-Smith <aureliaomega at gmail.com(javascript:main.compose()> wrote:
> 
> > Perfect, the 26 September nightly build version of the PVCAM adapter has cleared up my live view problem! Thanks very much, I am so happy! 
> > 
> > Aurelia
> > 
> > 
> > 
> > 
> > On Fri, Sep 27, 2013 at 4:15 AM, Luke Stuyvenberg <stuyvenberg at wisc.edu(javascript:main.compose()> wrote:
> > 
> > > Hi Aurelia,
> > > 
> > > On Thu, 26 Sep 2013, Aurelia Honerkamp-Smith wrote:
> > > 
> > > 
> > > > Thanks for this latest update: it has almost fixed my PVCAM problem.
> > > > Now I can load the camera, and since the last update I no longer get a
> > > > time-out error message when I use the live view. But, the live window
> > > > opens and displays an image, then it doesn't refresh, so I see the same
> > > > image until I stop and start live view again. I can now run the Open
> > > > SPIM plugin, but have to keep stopping and starting live view in order
> > > > to see what is going on with my calibration sample. I'm so close! Any
> > > > suggestions for fixing this? Live view through my camera works fine in
> > > > a plain, non-Fiji and non-OpenSPIM installation of Micromanager, so I
> > > > can align and take pictures at the moment, but I want to use your lovely
> > > > plugin.
> > > > 
> > > 
> > > Yes, I seem to remember other reports of this trouble (also with PVCAM, if I recall correctly), though I had thought them resolved... I believe Johannes is correct, and synchronizing with Micro-Manager may resolve this issue. I've started work on this, but the process is (frustratingly) intricate, and might take some time. In the future I hope to make the process unnecessary.
> > > 
> > > As a temporary measure, you should have no trouble using the PVCAM device adapter from the Micro-Manager nightly build (The file should be wherever you installed the 'vanilla' Micro-Manager to; simply copy it to OpenSPIM's "mm/win32" directory -- it may ask you to overwrite). If you decide to try this, please let me know how it works out.
> > > 
> > > Thanks,
> > > Luke
> > > 
> > 
> > 
> > 
> > 
> > 
> >




More information about the OpenSPIM mailing list