Sequencer question

Somewhere to ask questions about the best way to use SharpCap
Forum rules
‍

If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs
Post Reply
johng
Posts: 7
Joined: Fri Jun 03, 2022 6:26 pm

Sequencer question

#1

Post by johng »

Hello Robin,
I am trying to set up a capture interval using “Sequencer” which basically mimics the basic “Start Capture” function for CV observations. For example: “Sequence Length 300”; “Interval between Captures: 5:00”; to capture 1 frame every 5 minutes for 300 frames. My plan is to embed these steps within the 'Stop running these steps when <Distance> degrees from the meridian' step to account for the meridian flip. I’ve been attempting to use the “Run a periodic task called '<Task Name>' every <Interval> seconds” without any luck. Any ideas?
Love your app.

Thanks!
John
User avatar
admin
Site Admin
Posts: 17464
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Sequencer question

#2

Post by admin »

Hi John,

the 'periodic task' function is designed to slip in an action like dithering or refocusing between other activities - they can only activate at certain points during the execution of a sequence, which are mainly:

* between one step and the next
* between frames when capturing still frames

They also won't stop a sequence from finishing, so they are not really the ideal way to do this.

What you might want is something like this
Screenshot 2024-06-21 133844.png
Screenshot 2024-06-21 133844.png (7.25 KiB) Viewed 567 times

Code: Select all

SEQUENCE
    LOOP 300 TIMES
        PAD DURATION TO 300
            CAPTURE 1 FRAMES REQUIREGUIDING False
        END PAD DURATION
    END LOOP
END SEQUENCE
That sequence will capture a single frame every 5 minutes (300s) for 300 repetitions. Using the (fairly new) step that pads out the time taken by the contained steps to a known length should get the timings pretty much spot on for 1 frame every 5 minutes. You could also do a capture + delay in the loop, but the delay would need adjusting if your exposure changed.

Hope this helps,

Robin
johng
Posts: 7
Joined: Fri Jun 03, 2022 6:26 pm

Re: Sequencer question

#3

Post by johng »

Thanks Robin! I think this will do it.
John
Post Reply