Page 1 of 2
Automated LRGB Sequence Capture
Posted: Thu Aug 09, 2018 9:24 am
by 1CM69
Hi,
I am trying to work with the scripting in SharpCap in order to automate capturing LRGB planetary datasets with my filterwheel.
I stumbled across this script:
but I am getting errors with:
Code: Select all
from SharpCap.UI import NotificationMessage
from SharpCap.UI import NotificationStatus
is there a workaround I can use?
Thanks
Kirk
Re: Automated LRGB Sequence Capture
Posted: Thu Aug 09, 2018 1:40 pm
by 1CM69
OK, I've been muddling through and so far have got a script that works, albeit there is some fine tuning to do.
At the moment the variables such as TimeLimit & number of sequences are hard coded.
I am going to make the script more user friendly with a form to allow input of these variables.
I might also add an option to change from using a timelimit to using a framelimit.
Also thinking about adding filter specific variables e.g Gain & Exposure.
Here's the code so far:
Re: Automated LRGB Sequence Capture
Posted: Thu Aug 09, 2018 6:21 pm
by admin
Try this
Code: Select all
clr.AddReference("SharpCap.Base.dll")
from SharpCap.Base import NotificationStatus
from SharpCap.Base import NotificationMessage
Robin
Re: Automated LRGB Sequence Capture
Posted: Thu Aug 09, 2018 7:13 pm
by turfpit
Re: Automated LRGB Sequence Capture
Posted: Fri Aug 10, 2018 12:01 pm
by 1CM69
admin wrote: ↑Thu Aug 09, 2018 6:21 pm
Try this
Code: Select all
clr.AddReference("SharpCap.Base.dll")
from SharpCap.Base import NotificationStatus
from SharpCap.Base import NotificationMessage
Robin
Hi Robin, thanks for replying.
I did try this but to no avail, I have now altered the way notifications are been shown.
Thanks
Re: Automated LRGB Sequence Capture
Posted: Fri Aug 10, 2018 12:02 pm
by 1CM69
Thanks Dave, I have seen this & have based my script partially on this apart from mine lack a GUI
Cheers
Kirk
Re: Automated LRGB Sequence Capture
Posted: Fri Aug 10, 2018 12:05 pm
by 1CM69
I have now made a few changes to make the script more usable, still no GUI though.
I've been through the wringer attempting to create a GUI in Python & decided that it's just not worth the effort.
Here is my current code, tested & working:
Kirk
Re: Automated LRGB Sequence Capture
Posted: Fri Aug 10, 2018 3:13 pm
by oopfan
Kirk,
You can learn from my IronPython code...
Brian
Re: Automated LRGB Sequence Capture
Posted: Fri Aug 10, 2018 3:15 pm
by oopfan
Here is a screenshot of that form...
Re: Automated LRGB Sequence Capture
Posted: Fri Aug 10, 2018 3:49 pm
by 1CM69
oopfan wrote: ↑Fri Aug 10, 2018 3:13 pm
Kirk,
You can learn from my IronPython code...
Brian
That’s brilliant, thanks Brian