This is a simple way for starting a scheduler with a DragScript.
Work for Hour Angle but you can add constraints for date an time. Block must be fill with your actions (if exists) dedicated to your observatory.
1 - Start: Events At Start are DISABLE
2 - Script
3 - Block: Viking Connection and Card I/O connection with failover
4 - Remark: Fill with your needed
5 - Block: Checking of observatory temperature and fan activation id needed
6 - Remark: Fill with your needed
7 - Block: WAIT right time to start night operations
8 - Remark: Fill with your needed
9 - Block: Setup Connect with failover control
10 - Remark: Fill with your needed
11 - Block: Enable Events and check for some time with a wait if all is ok
12 - Remark: Fill with your needed
13 - Block: Pre cooling
14 - Remark: Fill with your needed
15 - Block: Initial goto ALT.AZ and Blind Solve with faiolver management
16 - Remark: Fill with your needed
17 - Block: SCHEDULER
18 - Block: Scheduler Hour Angle Mode
19 - Block: TARGET A
20 - DO IF HA BETWEEN: Between -2 and 2 [Hours] - ( RA 11 22 33 - DEC 22 33 44 )
21 - Send Email using Voyager Account: - - Start sequence Target A
22 - Sequence: Interval of 02:00:00 [hh:mm:ss] - TARGET A
23 - IF ERROR
24 - Send Email using Voyager Account: - - Error sequence Target A
25 - Block: TARGET B
26 - DO IF HA BETWEEN: Between -2 and -2 [Hours] - ( RA 11 22 33 - DEC 22 33 44 )
27 - Send Email using Voyager Account: - - Start sequence Target B
28 - Sequence: Interval of 02:00:00 [hh:mm:ss] - TARGET B
29 - IF ERROR
30 - Send Email using Voyager Account: - - Error sequence Target B
31 - Block: TARGET C
32 - DO IF HA BETWEEN: Between -2 and -2 [Hours] - ( RA 11 22 33 - DEC 22 33 44 )
33 - Send Email using Voyager Account: - - Start sequence Target C
34 - Sequence: Interval of 02:00:00 [hh:mm:ss] - TARGET C
35 - IF ERROR
36 - Send Email using Voyager Account: - - Error sequence Target C
37 - Wait Time: 00:01:00 [hh:mm:ss] Interval
38 - Repeat Block Until Astronomical Night End: Data from connected Setup - Offset (Before) 00:00:00 [hh:mm:ss]
39 - Block: Dawn Flat
40 - Remark: Fill with your needed
41 - Block: Shutdown all and send you a mail
42 - Remark: Fill with your needed
43 - End
44 - Events
45 - Emergency Exit
46 - Remark: All the code in this Emergency Exit block will be done before exit
47 - Block: park, close observatory, shutdown all setup send emal and so
48 - Emergency Suspend: Wait Resume until absolute time : 06:30:00 [hh:mm:ss] - On Resume Timeout Exec Emergency Exit Event
49 - Remark: All the code in this Emergency Suspend block will be done before entering in suspend mode or return to run in case of Emergency Resume
50 - Block: park, close observatory if you want,shutdown cooler if you want
51 - Block: Eventually you can take dark and flat
52 - Emergency Resume
53 - Remark: All the code in this Emergency Resumet block will be done before resume to the block you pointing
54 - Block: Rearm Observatory (reopen, unpark moun and so)
55 - Resume from Block: SCHEDULER
Example of COmplex Observatory Management From Zero.vos (55.0 KB)
Targets and sequence data must be filled with your data.
You can copy / paste / cut block of Target at needed, all the other parts of DragScript need to be created only one time.
All the best
LO