Page 1 of 1

Upload Flat Frame for Preprocessing with a script

Posted: Fri Nov 10, 2023 3:17 pm
by amgandi
Good afternoon all!

Is there a possibility of uploading a flat frame by running an IronPython script with the path to my flat frame instead of inserting it manually via the Camera Control Panel? If yes, does anyone know the command for that?

Cheers,
Ben

Re: Upload Flat Frame for Preprocessing with a script

Posted: Sat Nov 11, 2023 2:51 pm
by admin
Hi Ben,

yes, you can do that no problem

Code: Select all

SharpCap.SelectedCamera.Controls.ApplyFlat.Value = "c:\\path\\to\\flat.fits"
The only complex part is that you need to use double backslash characters in the string literal to avoid python thinking \t is a tab character, etc.

cheers,

Robin

Re: Upload Flat Frame for Preprocessing with a script

Posted: Mon Nov 13, 2023 7:36 am
by amgandi
Hi Robin,

Ahh okay thank you very much for the help!!

Best wishes,

Ben