[OpenSPIM] HamamatsuHam, Windows 7 & OpenSPIM
Luke Stuyvenberg
stuyvenberg at wisc.edu
Fri Jun 7 13:21:49 CDT 2013
Hi Alexis,
The error message seems to confirm your assumption; it suggests that one of the files Cobolt depends on is out-of-date. (I suspect this file is most likely /src/micromanager/MMDevice/DeviceBase.h or MMDevice.h.) The device code base changed recently, hence the problem you had loading the latest Hamamatsu adapter. If your OpenSPIM installation updated, but you're still using source code from before then, any adapters you build will not be loaded by Micro-Manager. When did you fetch the source code from github? Recently, as a part of trying to get the development environment working? If not, have you done a 'git pull' in /src/micromanager to update the source code recently?
Hope this helps,
Luke Stuyvenberg
On 06/07/13, Alexis Maizel wrote:
> Hi Luke,
>
> I have used CoherentCube's as a template and modified the Cobolt code to implement the Shutter API.
> It compiles seamlessly.
> However, OpenSPIM now complains about this new device adapter: "Version Mismatch" (and list it as "unavailable").
>
> I assume that I use the wrong code base; but I must confess I am now totally lost. Given that my version of OpenSPIM utilises MM v1.4.xx Dev, which MM source code version should I use?
>
> Alexis
>
>
>
> On 6 Jun 2013, at 19:23, Luke Stuyvenberg <stuyvenberg at wisc.edu> wrote:
>
> > Hi Alexis,
> > On 06/06/13, Johannes Schindelin wrote:
> >> I *think* all you have to do is extend the CShutterBase class:
> >> https://github.com/openspim/micromanager/blob/openspim/DeviceAdapters/DemoCamera/DemoCamera.h#L695
> >
> >
> > I suspect you'll also have to implement some specific member functions -- DemoCamera is a reasonable source, though I'd suggest using CoherentCube's DeviceAdapter for reference -- it doesn't contain code for a camera, and is more relevant to laser controllers. A quick overview of what I think will need changing:
> > - Cobolt.h line 30: change CGenericBase<Cobolt> to CShutterBase<Cobolt>
> > - Cobolt.h: add shutter API calls (see CoherentCube.h lines 153 - 156)
> > - Cobolt.cpp: Implement the shutter API functions -- probably, they will just call LaserOnOff with the right value.
> >
> >
> >> Seems that the "reg" tool is not as universally present as we originally
> >> thought!
> >
> >
> >
> > Oops! Sorry; I don't yet have a Win7 machine/VM to test on, so I wasn't aware of this. tclsh is included in our dev env package, so I suppose we'd best switch to that. Thanks Johannes for the substitute.
> >
> >
> > Please let us know how the tests go!
> >
> >
> > Thanks again,
> > Luke Stuyvenberg
More information about the OpenSPIM
mailing list