Accesing and using FWHM Measurement Transform
Posted: Wed Aug 05, 2020 4:48 pm
I would like to add to my imaging script the hability to perform an autofocus routine to be triggered based on number of frames or temp threshold.
I have everything ready, but the core of the function, as I am unable to manage the focusing Transform.
The steps I want to run are:
1) Move the focuser "In" 5 times the "scan step size" (easy and already working)
2) Open the Transform. I am able to open it via:
SharpCap.Transforms.SelectTransform("FWHM Measurement")
though it gives me an error (translated from spanish, language of my OS) equivalent to "the subprocess that makes the call cannot use the object
because it does not own it"
3) PRESS "Out" button and be notified (or make a while loop checking for it to finish). I could even make an external estimate of duration and it is not
the main concern at all.
4) PRESS the "Best position" button
Obviously when I say PRESS I mean access the function under these buttons, but said that way for clarity
Can anyone help me on this?
Thanks and regards in advance
I have everything ready, but the core of the function, as I am unable to manage the focusing Transform.
The steps I want to run are:
1) Move the focuser "In" 5 times the "scan step size" (easy and already working)
2) Open the Transform. I am able to open it via:
SharpCap.Transforms.SelectTransform("FWHM Measurement")
though it gives me an error (translated from spanish, language of my OS) equivalent to "the subprocess that makes the call cannot use the object
because it does not own it"
3) PRESS "Out" button and be notified (or make a while loop checking for it to finish). I could even make an external estimate of duration and it is not
the main concern at all.
4) PRESS the "Best position" button
Obviously when I say PRESS I mean access the function under these buttons, but said that way for clarity
Can anyone help me on this?
Thanks and regards in advance