Some users are testing it, when finished i’ll add some example.
Generally is easy just use it , during wait events are disabled, when exit you have OK if safe, timeout wait is finished or error is something goes wrong. Just OK allow to run safe.
After playing a lot with trial and error I came up with a script that suits my needs. Although it is extensive, it does things the way my setup requires and I feel happy with.
I don’t have an observatory nor I have any clouds/rain/temperature sensors. I just rely on weather forecast to uncover the telescope in my backyard.
The general overview of the script behaviour is as follows:
Start primary mirror cooling on my reflector well in advance
Power up remaining devices and connect them. If it fails after a few attemps, turn the rig off and call it a night
If devices connected, start cooling CCD is 2 steps.
Calibrate guiding
Autofocus routine
Start sequence(s) in accordance with the needs. So far I just tried a single target in one given night.
If sequence went ok, get sky flats
Warm up CCD. (scope parking and guiding cancellation is taken care by sequence own options)
Turn off all systems,ventilation included.
In the future I will add a motorized scope dust cap and will add a script to copy all photos taken during the night to another computer, automatically.
I bet I can reduce the amount of code in the script, this is a work in progress, feel free the comment or add any valuable information about the script.
Regards
Miguel
1 - Start: Events At Start are ENABLE
2 - Script
3 - Send Email using Voyager Account: - Observatório está a iniciar - ##NOW## o observatório iniciou o algorit ...
4 - Counter: Power - Init Value = 0
5 - Block: Wait to start ventilation
6 - Remark: -----------------------------------------------------------------------------------------------
7 - Remark: Start ventilation of primary mirror 1h30m before EOD
8 - Remark: Activate relay 8 for ventilation power
9 - Remark: Sends e-mail if event fails after 3 attempts
10 - Remark: Moves into the script to power on devices
11 - Remark: -----------------------------------------------------------------------------------------------
12 - Wait Civil Night: Manual Data [LAT:51° 04' 09" N LON: 06° 01' 35" E] - Offset (Before) 01:30:00 [hh:mm:ss] - Max Wait Time 2 [hh]
13 - Block: Ventilation on
14 - External Script: C:\Users\ASTRO\Documents\Voyager\Script\Vent on.bat ; StringCheck=Succesful disconnect.
15 - IF OK
16 - Update Counter: Power - Set to 1
17 - Goto Block: Power on to devices
18 - Wait Time: 00:01:00 [hh:mm:ss] Interval
19 - Repeat Block For n Times: 3
20 - Send Email using Voyager Account: - ATENÇÂO!!! - FALHA no observatório - ##NOW## a ventilação sofreu uma falha de ...
21 - Goto Block: Power on to devices
22 - Block: Power on to devices
23 - Remark: -----------------------------------------------------------------------------------------------
24 - Remark: Starts all other devices except dust cover 30m after EOD
25 - Remark: Activates relay 1 to 5
26 - Remark: Sends e-mail if event fails
27 - Remark: Moves to Ventilation off if Power counter=1
28 - Remark: -----------------------------------------------------------------------------------------------
29 - Wait Civil Night: Manual Data [LAT:51° 01' 09" N LON: 06° 01' 35" E] - Offset (After) 00:30:00 [hh:mm:ss]
30 - Block: Devices on
31 - External Script: C:\Users\ASTRO\Documents\Voyager\Script\All on.bat ; StringCheck=Succesful disconnect.
32 - IF OK
33 - Update Counter: Power - Set to 2
34 - Goto Block: Prepare to connect devices to Voyager
35 - Wait Time: 00:00:30 [hh:mm:ss] Interval
36 - Repeat Block For n Times: 3
37 - Send Email using Voyager Account: - >>>ATENÇÂO<<< - FALHA NO OBSERVATÓRIO - ##NOW## não foi possível ligar os dispos ...
38 - Goto Block: Power off devices and ventilation off
39 - Block: Prepare to connect devices to Voyager
40 - Remark: -----------------------------------------------------------------------------------------------
41 - Remark: Connect devices to Voyager
42 - Remark: If it fails, kills processes, try again with 5m delay from the first try
43 - Remark: If it fails, send e-mail and move to turn devices off
44 - Remark: plus ventilation off and PC SHUTDOWN
45 - Remark: -----------------------------------------------------------------------------------------------
46 - Block: Connect setup
47 - Wait Time: 00:00:25 [hh:mm:ss] Interval
48 - Connect Setup with Timeout: TimeOut : 90[s]
49 - IF TIMEOUT
50 - Disconnect Setup
51 - Wait Time: 00:30:00 [hh:mm:ss] Interval
52 - External Script: C:\Users\ASTRO\Documents\Voyager\Script\All off.bat ; StringCheck=Succesful disconnect.
53 - Wait Time: 00:01:00 [hh:mm:ss] Interval
54 - External Script: C:\Users\ASTRO\Documents\Voyager\Script\task kill if fails.bat ; StringCheck=Succesful disconnect.
55 - Wait Time: 00:01:00 [hh:mm:ss] Interval
56 - External Script: C:\Users\ASTRO\Documents\Voyager\Script\All on.bat ; StringCheck=Succesful disconnect.
57 - IF OK
58 - Goto Block: CCD cooling
59 - Repeat Block For n Times: 3
60 - Send Email using Voyager Account: - >>>ATENÇÂO<<< - FALHA NO OBSERVATÓRIO - ##NOW## Voyager não conseguiu estabelece ...
61 - Goto Block: Power off devices and ventilation off
62 - Block: CCD cooling
63 - Remark: -----------------------------------------------------------------------------------------------
64 - Remark: Cools CCD in steps
65 - Remark: 0ºC --> 3m --> -15ºC
66 - Remark: -----------------------------------------------------------------------------------------------
67 - Wait Time: 00:00:30 [hh:mm:ss] Interval
68 - Cooling Down: 0[°C] - Sync Cooling - Use CCD Firmware Cooling down0[°C]
69 - Wait Time: 00:03:00 [hh:mm:ss] Interval
70 - Cooling Down: -15[°C] - Sync Cooling - Use CCD Firmware Cooling down-15[°C]
71 - Goto Block: Open dust cap
72 - Block: Open dust cap
73 - Wait User OK: without timeout - Remove dust caps
74 - Block: guiding calibration and autofocus
75 - Unparking
76 - Stop Tracking
77 - Block: calibrate guiding
78 - Goto ALT/AZ: ALT 51 31 00 - AZ 237 50 00 - FC: True
79 - Calibrate Guide: Time 3 [s] - Binning 1 - Use RoboGuide Star Selection
80 - IF OK
81 - Goto Block: autofocus
82 - Wait Time: 00:15:00 [hh:mm:ss] Interval
83 - Repeat Block For n Times: 5
84 - Goto Block: Good night
85 - Block: autofocus
86 - AutoFocus with RoboFire LocalField: Filter [4] C focus
87 - IF OK
88 - Goto Block: Sequence1
89 - Wait Time: 00:15:00 [hh:mm:ss] Interval
90 - Repeat Block For n Times: 3
91 - Goto Block: Good night
92 - Block: Sequence1
93 - Sequence: Start 23:45:00 [hh:mm:ss] - End 04:00:00 [hh:mm:ss] - C:\Users\ASTRO\Documents\Voyager\ConfigSequence\IC1795 teste.s2q
94 - IF OK
95 - String: Sequence 1 - Init Value = "Good"
96 - Send Email using Voyager Account: - >>>ATENÇÂO<<< - ACTIVIDADE NO OBSERVATÓR ... - ##NOW## a sequência de subframes termino ...
97 - Goto Block: Sequence2
98 - Block: Sequence2
99 - Block: Flats
100 - DO IF STRING VALUE: Sequence 1 is Equal to "Good"
101 - Flat: C:\Users\ASTRO\Documents\Voyager\ConfigSequence\teste flat.s2f
102 - IF OK
103 - Send Email using Voyager Account: - >>>ATENÇÂO<<< - ACTIVIDADE NO OBSERVATÓR ... - ##NOW## a sequência de flats terminou
104 - Goto Block: Good night
105 - Block: Good night
106 - Wait Time: 00:01:00 [hh:mm:ss] Interval
107 - Good Night: Sync Warmup - Park - CCD Filter Select [4] C focus
108 - Wait Time: 00:03:00 [hh:mm:ss] Interval
109 - Goto Block: Power off devices and ventilation off
110 - Block: Power off devices and ventilation off
111 - Block: Disconnect setup
112 - Disconnect Setup
113 - IF OK
114 - Goto Block: Power off all
115 - Wait Time: 00:01:00 [hh:mm:ss] Interval
116 - Repeat Block For n Times: 2
117 - Goto Block: Power off all
118 - Block: Power off all
119 - DO IF COUNTER VALUE: Power is Equal to 1
120 - Block: Ventilation off
121 - External Script: C:\Users\ASTRO\Documents\Voyager\Script\Vent off.bat ; StringCheck=Succesful disconnect.
122 - IF OK
123 - Send Email using Voyager Account: - >>>ATENÇÂO<<< - ACTIVIDADE NO OBSERVATÓR ... - ##NOW## a ventilação foi desligada. O co ...
124 - Goto End
125 - Send Email using Voyager Account: - >>>ATENÇÂO<<< - ACTIVIDADE NO OBSERVATÓR ... - ##NOW## a ventilação NÃO foi desligada. ...
126 - Repeat Block For n Times: 2
127 - Goto End
128 - DO IF COUNTER VALUE: Power is Equal to 2
129 - Block: Devices and ventilation off
130 - External Script: C:\Users\ASTRO\Documents\Voyager\Script\Vent off.bat ; StringCheck=Succesful disconnect.
131 - External Script: C:\Users\ASTRO\Documents\Voyager\Script\All off.bat ; StringCheck=Succesful disconnect.
132 - IF OK
133 - Send Email using Voyager Account: - >>>ATENÇÂO<<< - ACTIVIDADE NO OBSERVATÓR ... - Ás ##NOW## todos os dispositivos foram d ...
134 - Goto End
135 - Repeat Block For n Times: 2
136 - Send Email using Voyager Account: - >>>ATENÇÂO<<< - ACTIVIDADE NO OBSERVATÓR ... - ##NOW## a ventilação e os dispositivos N ...
137 - Goto End
138 - End
139 - Events
below my script. I don’t have a fixed location, and my setup is quite varied.
The mount is an Avalon Linear which I drive in parallel.
For now I only use DSLR, 6d and 60d modified Astrodon and a 60d CentralDS.
As optics I use an FSQ106 EDX4 with MoonLite HiRes focuser at both f / 5.0, f / 3.6 and f / 3.0. In addition to the Taka I use different lenses but more frequently the Canon EF 200 / 2.0 and the Samyang 135 / 2.0. I recently tested a Sigma 105 / 1.4 but with full aperture optical yields that didn’t satisfy me.
Obviously my script suffers from the need to decide, once arrived on the site, how to best set the phases of the shooting activity. Typically I decide at the table which object to shoot and dedicate the whole night to that object.
It is very simple and straightforward, I hope it will help.
Marzio
About: Advanced Multi Sequence with error management and retry:
In a lot of scripts also by AstroGabe (three scripts below your example) i see at the end of a block “repeat current block until” and before that a waiting time, can you elabarated why this is done.
because when seq. is finised it will go to the next block, or the time is past it wil go to the next block, also in error it wil go to the next block., what are the situation that if error / ok fail. and it will repeat the block?
The wait time is just a simple wait of few second to be sure all process involved in sequence are terminated if async and to leave some seconds to elaborate a button press for abort the dragscript.
For repeat, if you reserved a slot time for a sequence and if sequence abort for error or exit because is finished because is too short a repeat will restart the sequence until the time slot you have decided.