<div><div>Hi Alexis,</div><div><br/></div><div>The problem would be, I guess, differing power scales -- where the Cube's property is in mW (so the step is 10uW), the Cobolt's is in W. If you still don't want to alter SPIMAcquisition, you'll have to divide by 1000 when setting and multiply by the same when getting; see the OnPower member function.</div><div><br/></div><div>Let me know how it works out; this will be useful when I centralize the laser control.</div><div><br/></div><div>Luke</div></div><br><br>Alexis Maizel <Alexis.Maizel@cos.uni-heidelberg.de> wrote:<br><br>me again, not sure if the screenshot was transfered well.<br><br>On 24 Jul 2013, at 23:30, Luke Stuyvenberg <stuyvenberg@wisc.edu> wrote:<br><br>> Hi Alexis,<br>> On 07/24/13, Alexis Maizel  wrote:<br>>> 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?<br>>> 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) <br>> <br>> <br>> 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:<br>> <br>> <br>> - 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.)<br>> - Add lines inside that function:<br>> - CreateProperty("Minimum Laser Power", "<lowest value>", MM::Float, true)<br>> - CreateProperty("Maximum Laser Power", "<highest value>", MM::Float, true)<br>> filling in the values as appropriate, of course.<br>> <br>> <br>> I hope this helps. Do let me know if you get it working!<br>> <br>> <br>> Luke Stuyvenberg<br>