Can someone confirm if GetEFLensFocusPositionWithoutLensCom and GetEFLensFocusPositionWithLensCom return the same value as FocusPos? You should be able to just do like
print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))
print(call_event_proc('GetEFLensFocusPositionWithLensCom'))
If it returns -1, then it might need the FA.Create and/or InitializeAdjustmentSystem
I have always to call both, otherwise i got -1.
I am a bit confused. There were some inexplicable values. Sometimes with crashes.
The following script on M3 with 15-45
call_event_proc('FA.Create')
call_event_proc('InitializeAdjustmentSystem')
call_event_proc("EFLensCom.FocusSearchNear")
sleep(500)
print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))
print(call_event_proc('GetEFLensFocusPositionWithLensCom'))
call_event_proc("EFLensCom.MoveFocus",1,10)
sleep(500)
print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))
print(call_event_proc('GetEFLensFocusPositionWithLensCom'))
call_event_proc("EFLensCom.MoveFocus",10,10)
sleep(500)
print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))
print(call_event_proc('GetEFLensFocusPositionWithLensCom'))
call_event_proc("EFLensCom.MoveFocus",10,10)
sleep(500)
print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))
print(call_event_proc('GetEFLensFocusPositionWithLensCom'))
call_event_proc("EFLensCom.FocusSearchFar")
sleep(500)
print(call_event_proc('GetEFLensFocusPositionWithoutLensCom'))
print(call_event_proc('GetEFLensFocusPositionWithLensCom'))
give this results
-314
-314
-311
-311
-301
-301
-291
-291
633
633
@c_joerg I could get excited about the above as it looks reasonable to me, IF the following fits:
1. I'm not sure what focal length you ran the test at
2. I assume you started near the macro end and the counter was set at zero at that position
3. You then moved to the macro (near) end, by 314 steps, ie giving a count of -314
4, At the macro end the step count looks as if if hasn't 'stabilised', hence moving 10 didn't work out
5. Subsequent moves, by 10, appear to be stable
6. Finally you moved to the infinity end, ie steps from the start position being 633, ie 633+314 steps in total
But then again I could be 100% wrong ;-)