FocusAsync

Scripting ›› FocusControl ›› Methods ››
Parent Previous Next

FocusAsync


Method

FocusAsync ( ) as Boolean


Syntax

FocusMax.FocusControl.FocusAsync


Parameters

None


Returns

True if start is successful.


Remarks

Starts the auto focus operation and returns immediately. FocusAsync finds the brightest star on the CCD, and then controls the focuser Position until Best Focus is achieved. It updates the Properties StarXCenter, StarYCenter and HalfFluxDiameter . If the auto focus is not successful this Method sets HalfFluxDiameter = 0. This Method has the same effect as if the user clicked the Focus button on the Focus Tab.

Note that FocusAsync allows your script to be active during the Focus operation, which may take many seconds. You may need to periodically check the FindStarAsyncStatus property to determine when the Focus is complete. Use method Focus when it is more convenient to simply stop the execution of your script until the Focus is complete.