Double focus_position()
Return the most recently reached focus position.
set_focus 10, 0.5 until $acquired(focus) print "Ending focus position = ", $focus_position(), "mm"
set_focus
or focus
command ends, the
control system tells the control program where the focus mechanism
actually ended up, regardless of whether or not the requested focus
position was reached. The focus_position
function
allows this position to be queried for use within scheduling
scripts.