SEQUENCE PROBLEM
Posted: Sun Nov 30, 2025 2:21 pm
Hi
Just last night I was trying out a new test sequence to get a better understanding of how it works, and I needed the forum, but until this morning the site was down.
Welcome back, SharpCap!
Let's get to my problem...
My test sequence is essentially supposed to point to two objects, livestack each twice, and then stop.
Problem: The first loop goes infinitely, while I think it should loop twice and then move on to the next; instead, after the second livestack, the third starts, then the fourth, and then I stopped it.
Below is the sequence (The first loop works great: goto, livestacking, etc...).
SEQUENCE
LOOP 2 TIMES
PRESERVE CAMERA SETTINGS
SET EXPOSURE TO 2
MOUNT GOTO "KING6, RA=03 28.0, DEC=+56 27"
MOUNT SOLVEANDSYNC
END PRESERVE
SET EXPOSURE TO 15
DELAY 2
LIVE STACKING START
LIVE STACK FOR 1 MORE FRAMES THEN PAUSE
LIVE STACKING AUTOSTRETCH
LIVE STACK FOR 19 MORE FRAMES THEN PAUSE
LIVE STACKING SAVE FITSRawStack16Bit
LIVE STACK SAVE AND CLOSE
END LOOP
LOOP 2 TIMES
PRESERVE CAMERA SETTINGS
SET EXPOSURE TO 2
MOUNT GOTO "KING4, RA=02 35.0, DEC=+59 01"
MOUNT SOLVEANDSYNC
END PRESERVE
SET EXPOSURE TO 15
DELAY 2
LIVE STACKING START
LIVE STACK FOR 1 MORE FRAMES THEN PAUSE
LIVE STACKING AUTOSTRETCH
LIVE STACK FOR 19 MORE FRAMES THEN PAUSE
LIVE STACKING SAVE FITSRawStack16Bit
LIVE STACK SAVE AND CLOSE
END LOOP
END SEQUENCE
I don't understand where I'm going wrong.....
The loop doesn't execute twice, but continues...
Perhaps the blank line before END LOOP could be a problem?
The decimal point in the coordinates? However, the GOTO works well (although it is imprecise due to the simplified coordinates)
Thanks
Carlo
P.S. the log of sequencer
18:39:50 Starting : Sequence
18:39:50 Starting : Repeat 2 times
18:39:50 Starting : Save the camera settings and restore them when this block finishes
18:39:50 Starting : Set Exposure to 2,00000s
18:39:50 Completed : Set Exposure to 2,00000s
18:39:50 Starting : Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:50 Info : 'Setting target name to KING6' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:50 Info : 'Converting RA=03:28:00,0,Dec=+56:27:00 (J2000) position to RA=03:30:03,2,Dec=+56:32:32 (JNOW)' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:52 Info : 'Slewing, 1,7° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:53 Info : 'Slewing, 1,7° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:53 Info : 'Slewing, 1,1° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:54 Info : 'Slewing, 1,1° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:54 Info : 'Slewing, 1,1° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:55 Info : 'Slewing, 0,8° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:55 Info : 'Slewing, 0,5° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:56 Info : 'Slewing, 0,2° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:56 Info : 'Slewing, 0,0° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:57 Info : 'Slewing, 0,0° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:57 Info : 'Waiting for mount to settle' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:57 Info : 'Mount slew complete, waiting for mount to settle.' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:40:02 Completed : Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:40:02 Starting : Plate solve a single frame, sync the mount and re-goto the target co-ordinates
18:40:17 Info : 'Mount movement complete, waiting for mount to settle.' while running step Plate solve a single frame, sync the mount and re-goto the target co-ordinates
18:40:17 Completed : Plate solve a single frame, sync the mount and re-goto the target co-ordinates
18:40:17 Starting : Restore previously saved camera settings
18:40:17 Completed : Restore previously saved camera settings
18:40:17 Completed : Save the camera settings and restore them when this block finishes
18:40:17 Starting : Set Exposure to 15,00000s
18:40:17 Completed : Set Exposure to 15,00000s
18:40:17 Starting : Wait for 2 seconds
18:40:19 Completed : Wait for 2 seconds
18:40:19 Starting : Start Live Stacking
18:40:19 Completed : Start Live Stacking
18:40:19 Starting : Live Stack for 1 more frames then pause
18:40:20 Info : 'Waiting for live stack to reach a total of 1 stacked frames.' while running step Live Stack for 1 more frames then pause
18:40:34 Info : 'Live stacking paused, 1 stacked frames reached.' while running step Live Stack for 1 more frames then pause
18:40:35 Completed : Live Stack for 1 more frames then pause
18:40:35 Starting : Live Stacking Apply Auto Stretch
18:40:35 Completed : Live Stacking Apply Auto Stretch
18:40:35 Starting : Live Stack for 19 more frames then pause
18:40:35 Info : 'Waiting for live stack to reach a total of 20 stacked frames.' while running step Live Stack for 19 more frames then pause
18:56:18 Info : Cancellation request received
18:56:18 Cancelled : Live Stack for 19 more frames then pause
18:56:18 Cancelled : Repeat 2 times
18:56:18 Cancelled : Sequence
18:56:18 Cancelled : Sequence stopped.
18:56:18 Finished
Just last night I was trying out a new test sequence to get a better understanding of how it works, and I needed the forum, but until this morning the site was down.
Welcome back, SharpCap!
Let's get to my problem...
My test sequence is essentially supposed to point to two objects, livestack each twice, and then stop.
Problem: The first loop goes infinitely, while I think it should loop twice and then move on to the next; instead, after the second livestack, the third starts, then the fourth, and then I stopped it.
Below is the sequence (The first loop works great: goto, livestacking, etc...).
SEQUENCE
LOOP 2 TIMES
PRESERVE CAMERA SETTINGS
SET EXPOSURE TO 2
MOUNT GOTO "KING6, RA=03 28.0, DEC=+56 27"
MOUNT SOLVEANDSYNC
END PRESERVE
SET EXPOSURE TO 15
DELAY 2
LIVE STACKING START
LIVE STACK FOR 1 MORE FRAMES THEN PAUSE
LIVE STACKING AUTOSTRETCH
LIVE STACK FOR 19 MORE FRAMES THEN PAUSE
LIVE STACKING SAVE FITSRawStack16Bit
LIVE STACK SAVE AND CLOSE
END LOOP
LOOP 2 TIMES
PRESERVE CAMERA SETTINGS
SET EXPOSURE TO 2
MOUNT GOTO "KING4, RA=02 35.0, DEC=+59 01"
MOUNT SOLVEANDSYNC
END PRESERVE
SET EXPOSURE TO 15
DELAY 2
LIVE STACKING START
LIVE STACK FOR 1 MORE FRAMES THEN PAUSE
LIVE STACKING AUTOSTRETCH
LIVE STACK FOR 19 MORE FRAMES THEN PAUSE
LIVE STACKING SAVE FITSRawStack16Bit
LIVE STACK SAVE AND CLOSE
END LOOP
END SEQUENCE
I don't understand where I'm going wrong.....
The loop doesn't execute twice, but continues...
Perhaps the blank line before END LOOP could be a problem?
The decimal point in the coordinates? However, the GOTO works well (although it is imprecise due to the simplified coordinates)
Thanks
Carlo
P.S. the log of sequencer
18:39:50 Starting : Sequence
18:39:50 Starting : Repeat 2 times
18:39:50 Starting : Save the camera settings and restore them when this block finishes
18:39:50 Starting : Set Exposure to 2,00000s
18:39:50 Completed : Set Exposure to 2,00000s
18:39:50 Starting : Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:50 Info : 'Setting target name to KING6' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:50 Info : 'Converting RA=03:28:00,0,Dec=+56:27:00 (J2000) position to RA=03:30:03,2,Dec=+56:32:32 (JNOW)' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:52 Info : 'Slewing, 1,7° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:53 Info : 'Slewing, 1,7° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:53 Info : 'Slewing, 1,1° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:54 Info : 'Slewing, 1,1° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:54 Info : 'Slewing, 1,1° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:55 Info : 'Slewing, 0,8° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:55 Info : 'Slewing, 0,5° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:56 Info : 'Slewing, 0,2° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:56 Info : 'Slewing, 0,0° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:57 Info : 'Slewing, 0,0° from target at RA=03:30:03,2,Dec=+56:32:32' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:57 Info : 'Waiting for mount to settle' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:39:57 Info : 'Mount slew complete, waiting for mount to settle.' while running step Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:40:02 Completed : Move the mount to (RA,Dec) KING6, RA=03 28.0, DEC=+56 27 (RA=03:28:00,0,Dec=+56:27:00)
18:40:02 Starting : Plate solve a single frame, sync the mount and re-goto the target co-ordinates
18:40:17 Info : 'Mount movement complete, waiting for mount to settle.' while running step Plate solve a single frame, sync the mount and re-goto the target co-ordinates
18:40:17 Completed : Plate solve a single frame, sync the mount and re-goto the target co-ordinates
18:40:17 Starting : Restore previously saved camera settings
18:40:17 Completed : Restore previously saved camera settings
18:40:17 Completed : Save the camera settings and restore them when this block finishes
18:40:17 Starting : Set Exposure to 15,00000s
18:40:17 Completed : Set Exposure to 15,00000s
18:40:17 Starting : Wait for 2 seconds
18:40:19 Completed : Wait for 2 seconds
18:40:19 Starting : Start Live Stacking
18:40:19 Completed : Start Live Stacking
18:40:19 Starting : Live Stack for 1 more frames then pause
18:40:20 Info : 'Waiting for live stack to reach a total of 1 stacked frames.' while running step Live Stack for 1 more frames then pause
18:40:34 Info : 'Live stacking paused, 1 stacked frames reached.' while running step Live Stack for 1 more frames then pause
18:40:35 Completed : Live Stack for 1 more frames then pause
18:40:35 Starting : Live Stacking Apply Auto Stretch
18:40:35 Completed : Live Stacking Apply Auto Stretch
18:40:35 Starting : Live Stack for 19 more frames then pause
18:40:35 Info : 'Waiting for live stack to reach a total of 20 stacked frames.' while running step Live Stack for 19 more frames then pause
18:56:18 Info : Cancellation request received
18:56:18 Cancelled : Live Stack for 19 more frames then pause
18:56:18 Cancelled : Repeat 2 times
18:56:18 Cancelled : Sequence
18:56:18 Cancelled : Sequence stopped.
18:56:18 Finished