[OpenSPIM] API(s) for OpenSPIM control of laser intensity?

Alexis Maizel Alexis.Maizel at cos.uni-heidelberg.de
Fri Jul 26 09:28:23 CDT 2013


Hi Luke,

it fundamentally works. I modified the Cobolt device adapter code 	and I now can:
-  tweak the laser power from within the Properties Inspector. 
-  tweak the laser power using the Acquire SPIM image slider

For the later to work it took me a little while to realise that the property had to be called "PowerSetpoint" and not "PowerSetPoint" (note the minuscule P)…
The slider uses the "Minimum Laser Power" and "Maximum Laser Power" values as limits, but only allows quantum steps of 10mW. Is there a way to tweak this and allow a 1mW precision? 

With my best regards,

Alexis


On 24 Jul 2013, at 23:30, Luke Stuyvenberg <stuyvenberg at wisc.edu> wrote:

> Hi Alexis,
> On 07/24/13, Alexis Maizel  wrote:
>> If we would assume that I'd prefer to not alter the OpenSPIM core code, I could in principle achieve the same effect by renaming the "OnPower" properties of the Cobolt DAL to be called "OnPowerSetPoint" and refactor it to implement the CoherentCube DAL behaviour, no?
>> Definitively more work than your solution, but like this I am sure that all my hacks are in the same place, which should warrant less maintenance headaches on the long run (i-e next time OpenSPIM is updated, I do not have to remember to modify again SPIMAcquisition.java) 
> 
> 
> Quite right. If that's the approach you'd prefer, there is another change you'll have to make -- OpenSPIM expects properties for minimum and maximum laser power as well; Cobolt doesn't offer these, but they can be added:
> 
> 
> - On (what used to be) line 86, change CreateProperty("Power" ... to CreateProperty("PowerSetPoint" ... (Micro-Manager only cares about that string, as far as accessing the property.)
> - Add lines inside that function:
> - CreateProperty("Minimum Laser Power", "<lowest value>", MM::Float, true)
> - CreateProperty("Maximum Laser Power", "<highest value>", MM::Float, true)
> filling in the values as appropriate, of course.
> 
> 
> I hope this helps. Do let me know if you get it working!
> 
> 
> Luke Stuyvenberg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture.PNG
Type: image/png
Size: 196149 bytes
Desc: not available
URL: <http://openspim.org/pipermail/openspim/attachments/20130726/104c8a5c/attachment-0002.png>


More information about the OpenSPIM mailing list