David's Astronomy Pages
Notes - Session 921 (2021-10-04)

 
Bullet Session Aims & Highlights
 - Observing Result
 - Night Summary Plot
 - Session Event Log
 
Bullet Operational Issues
  - Critical Issues (0),  Major Issues (0),  Minor Issues (13),  Small Defects (3),  Continuous Improvement (9)
 
Bullet Images from 2021-10-04 >>          [ Local Files >> ]
2021-10-07
Bullet Autoguiding Review
Bullet Investigation - Connection to UPB Powerbox lost / Obs.Monitor freezing in 'Monitor Powerbox' (2021-10-07 17:04)

Session Aims & Highlights (2021-10-04)

Main aims

  1. Targets. Acquire images of a selection of variable stars, nearby stars, comets & deep sky targets as allowed by time & conditions.
  2. AstroMain/AstroPlan. Test updated TP2 linkage between AstroMain & AstroAllSky with SkyAduRate and DiffStats/Photometric Condition Indicator

Equipment & Software

Highlights

Lowlights

Notes:

Summary Plots & Logs

Observing Plan
Image
  
Observing Result
Image
   
Dome & Scope Slewing Performance
Image
  
Slew/Centering Performance
Image
  
Guiding Performance
Image
Image
  
Sky Conditions (Locate Frames)
Image
 
  
Night Sky Summary Plot
Top axis: Sky Brightness at Zenith (in ADU/s)
Lefthand axis: Local Time (hh LT). Righthand axis: Sun Altitude (degs)
Image   
  
Actual Weather vs Pre-Session Weather Forecast
Image
Image   
  
Session Event Log
Time     Event Detail
21:12:35 Session Monitoring AutoStart monitoring for Live Session opportunity between 21:12 & 05:17
21:12:40   AutoStart Delayed Session delayed due to cloud
21:59:09 Session AutoStarting Session autostarting (21:59)
21:59:39 Session Created Live Session Created (2021-10-04 S00921, ImageSaveNum: 921001)
21:59:41   Scope Switched On Telescope Power has been switched on via UPB Powerbox.
22:01:25   Services Started Observatory Services started
22:01:32 Observatory (Auto) Observatory placed in Fully-Automated Mode
22:01:34 Session Pending Session pending (2021-10-04)
22:01:36 Session Initiating Session initiating (2021-10-04)
22:01:38   Plan Requested Observing Plan requested from AstroPlan (1.24.3)
22:02:35   Plan Loaded Observing Plan loaded to queue (, Plan ID: 669)
22:02:58   Camera1 Connected SBIG Camera Connected (set point -10°C)
22:03:04   Telescope Connected Telescope Connected (TheSky6)
22:03:28 Session Equilibration Session ready for dome & camera equilibration
22:04:13   Dome Opened Dome opened (opening time 45s)
22:04:38 Session Running Session running
22:04:41   Queue Started Observing Queue started (28 targets selected)
22:04:44     Target Started (NrZen) Target started (Focus Field 22, HIP 108888)
22:06:24       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
22:09:31       Focusing Completed Foc1 AutoFocus Completed (Profile No 1, wide)
22:11:29       Focusing Completed Foc1 AutoFocus Completed (Profile No 1)
22:11:31       Focusing Started-Foc2 Foc2 Focusing Started (Secondary Scope, using ShCap)
22:13:51       Focusing Completed Foc2 AutoFocus Completed (Profile No 2, wide)
22:15:45       Focusing Completed Foc2 AutoFocus Completed (Profile No 2)
22:16:05     Target Completed Target completed (Focus Field 22, HIP 108888)
22:16:40     Target Started (1/28) Target started (1/28, NGC 6500 w/SN2021wuf)
22:26:05       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
22:27:40       Focusing Completed Foc1 AutoFocus Completed (Profile No 3)
22:43:29     Target Completed Target completed (1/28, NGC 6500 w/SN2021wuf)
22:43:31     Target Started (2/28) Target started (2/28, Vega)
22:46:19     Target Completed Target completed (2/28, Vega)
22:46:21     Target Started (3/28) Target started (3/28, GCVS RR Lyr)
22:50:19       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
22:52:10       Focusing Completed Foc1 AutoFocus Completed (Profile No 4)
22:57:47     Target Completed Target completed (3/28, GCVS RR Lyr)
22:57:49     Target Started (4/28) Target started (4/28, Vega)
23:00:58     Target Completed Target completed (4/28, Vega)
23:03:34     Target Started (5/28) Target started (5/28, GCVS V Sge)
23:07:18       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
23:09:17       Focusing Completed Foc1 AutoFocus Completed (Profile No 5)
23:15:44     Target Completed Target completed (5/28, GCVS V Sge)
23:15:46     Target Started (6/28) Target started (6/28, AT2021zkf)
23:20:26       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
23:22:23       Focusing Completed Foc1 AutoFocus Completed (Profile No 6)
23:38:21     Target Completed Target completed (6/28, AT2021zkf)
23:38:23     Target Started (7/28) Target started (7/28, GCVS SS Cyg)
23:42:20       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
23:44:07       Focusing Completed Foc1 AutoFocus Completed (Profile No 7)
23:46:41     Target Completed Target completed (7/28, GCVS SS Cyg)
23:52:20     Target Started (8/28) Target started (8/28, Nova Cas 2021)
23:56:35       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
23:58:20       Focusing Completed Foc1 AutoFocus Completed (Profile No 8)
00:08:42     Target Completed Target completed (8/28, Nova Cas 2021)
00:08:44     Target Started (9/28) Target started (9/28, 67P/Churyumov-Gerasimenko)
00:13:22       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
00:15:27       Focusing Completed Foc1 AutoFocus Completed (Profile No 9)
00:28:41     Target Completed Target completed (9/28, 67P/Churyumov-Gerasimenko)
00:28:43     Target Started (10/28) Target started (10/28, GCVS BL Lac)
00:32:24       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
00:34:12       Focusing Completed Foc1 AutoFocus Completed (Profile No 10)
00:37:46     Target Completed Target completed (10/28, GCVS BL Lac)
00:37:48     Target Started (11/28) Target started (11/28, NGC 9 w/AT2021zju)
00:41:41       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
00:43:29       Focusing Completed Foc1 AutoFocus Completed (Profile No 11)
00:59:10     Target Completed Target completed (11/28, NGC 9 w/AT2021zju)
00:59:29     Target Started (12/28) Target started (12/28, NGC 514 w/SN2020uxz)
01:03:22       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
01:05:17       Focusing Completed Foc1 AutoFocus Completed (Profile No 12)
01:16:10     Target Completed Target completed (12/28, NGC 514 w/SN2020uxz)
01:16:50     Target Started (13/28) Target started (13/28, M33 w/AT2021wcf)
01:21:15       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
01:24:27       Focusing Completed Foc1 AutoFocus Completed (Profile No 13)
01:42:04     Target Completed Target partially completed (13/28, M33 w/AT2021wcf)
01:42:07     Target Started (14/28) Target started (14/28, AT2021xrf)
02:04:23     Target Completed Target partially completed (14/28, AT2021xrf)
02:04:26     Target Started (15/28) Target started (15/28, NGC 6184 w/SN2021wkv)
02:27:25     Target Completed Target partially completed (15/28, NGC 6184 w/SN2021wkv)
02:27:27     Target Started (16/28) Target started (16/28, M31 w/AT2021zdh)
02:47:22     Target Completed Target partially completed (16/28, M31 w/AT2021zdh)
02:47:24     Target Started (17/28) Target started (17/28, GCVS X TRI)
02:51:19       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
02:53:06       Focusing Completed Foc1 AutoFocus Completed (Profile No 14)
02:59:41     Target Completed Target completed (17/28, GCVS X TRI)
02:59:43     Target Started (18/28) Target started (18/28, GCVS DY Per)
03:05:46       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
03:07:33       Focusing Completed Foc1 AutoFocus Completed (Profile No 15)
03:11:13     Target Completed Target completed (18/28, GCVS DY Per)
03:11:15     Target Started (19/28) Target started (19/28, WDS GRB 34)
03:15:03       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
03:16:40       Focusing Completed Foc1 AutoFocus Completed (Profile No 16)
03:18:22     Target Completed Target completed (19/28, WDS GRB 34)
03:18:25     Target Started (20/28) Target started (20/28, NGC 940 w/SN2021vtl)
03:22:39       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
03:24:48       Focusing Completed Foc1 AutoFocus Completed (Profile No 17)
03:40:30     Target Completed Target completed (20/28, NGC 940 w/SN2021vtl)
03:40:32     Target Started (21/28) Target started (21/28, NGC 1166 w/SN2021zby)
04:01:02     Target Completed Target completed (21/28, NGC 1166 w/SN2021zby)
04:01:04     Target Started (22/28) Target started (22/28, 4P/Faye)
04:04:14       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
04:06:02       Focusing Completed Foc1 AutoFocus Completed (Profile No 18)
04:12:10     Target Completed Target completed (22/28, 4P/Faye)
04:12:12     Target Started (23/28) Target started (23/28, C/2019 L3 (ATLAS))
04:15:14       Focusing Skipped Foc1 focusing skipped - star is too dim (TCF-S)
04:24:07     Target Completed Target completed (23/28, C/2019 L3 (ATLAS))
04:26:04     Target Started (24/28) Target started (24/28, UGC 2605 w/SN2021wvw)
04:29:57       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
04:32:06       Focusing Completed Foc1 AutoFocus Completed (Profile No 19)
04:47:48     Target Completed Target completed (24/28, UGC 2605 w/SN2021wvw)
04:47:50     Target Started (25/28) Target started (25/28, Nova Per 2020)
04:51:21       Focusing Started-Foc1 Foc1 Focusing Started (TCF-S)
04:53:15       Focusing Completed Foc1 AutoFocus Completed (Profile No 20)
05:01:27     Target Completed Target completed (25/28, Nova Per 2020)
05:02:47     Target Started (26/28) Target started (26/28, GCVS FO Ori)
05:07:43       Focusing Skipped Foc1 focusing skipped - unable To find a star (TCF-S)
05:12:06     Target Completed Target completed (26/28, GCVS FO Ori)
05:12:08     Target Started (27/28) Target started (27/28, 17P/Holmes)
05:12:17   SoftSuspend Called Soft Suspend is called due to Deteriorating Conditions (too few stars)
05:13:57 Critical Cloud Alert Critical Cloud Alert (Obs.Manager will close the Shutter)
05:13:59   HardSuspend Called Hard Suspend is called due to Critical Conditions (cloud)
05:14:01     Target Aborted (27/28) Target aborted (27/28, 17P/Holmes) due to cloud
05:14:03   Queue Paused Queue paused for Session Suspension
05:14:05 Session Suspended Session suspended
05:14:52   Dome Closed Dome closed (closing time 50s)
05:27:13     Target Cancelled Target cancelled (27/28, 17P/Holmes) due to cloud
05:57:05     Target Cancelled Target cancelled (28/28, SN 2021wcu) due to cloud
05:57:10   Queue Completed Job Queue completed
05:57:16 Session Closing Session closing
05:57:21   Dome Closed Dome already closed (closed at 05:14, closing time 50s)
05:58:01   Dome Parked Dome parked (parking time 32s), Az: 90.0 deg
05:59:26   Telescope Parked Telescope parked (parking time 77s)
05:59:41   Telescope State Scope parked Turn scope off. (Handbox)
06:00:02   Telescope Switched Off Telescope Power has been switched off via UPB Switch.
06:00:53   Services Stopped Night Services stopped
06:00:55 Session Housekeeping Housekeeping Started (Cleanup FITS, Create Fits Summary, Transfer Files)
06:01:16 Session Finished Session Finished
 
Session Alerts
Time     Alert Detail
23:17:53 Dome Discrepency Difference between Telescope Az and Dome Az is > 8 deg (AT2021zkf)

Back to Top


Operational Issues (2021-10-04, S921)

[ Prev | Next ]

Critical Issues

Major Issues

Minor Issues

Small Defects

Continuous Improvement

[ Prev | Next ]

Back to Top


2021-10-07


Autoguiding Review (2021-10-07)

Introduction

Autoguiding for images taken through 12" LX200 Main Scope is performed using a 80mm secondary scope with ZWO 178MC camera that is attached securely to the LX200. Guiding is perfomed using PHD2 under the control of my automated observatory control program (AstroMain). 

The main scope is equatorially mounted and is closely aligned to the celestial pole, but with a bit of misalignment so that Uni-Directional Dec guiding can be used (avoiding Dec backlash issues that would happen if trying to guide in both directions (this is a LX200 mount and not a Paramount !).  

The image scale of the guide frames  is 1.03"/px (at 1x1 bining), which is a good match for the main scope images that are normally taken (1.40"/px at 3x3 binning  to 0.92"/px at 2x2 binning).   PHD2 is connected to the ASCOM Scope ast start of session which allows it to use a prior guidescope caibration to make RA corrections that are appropriate to the Scope's Declination.

Current Practice

The current practice is as follows:

Guiding with telescope tracking east of the Meridian is generally good/acceptable, but guiding with the telescope tracking  west of the Meridian is typically poor due to issue keeping guide star locked on Dec position . There is also a few other smaller issues.

Current Autoguding Issues

The following guiding issues are evident :-

Actions

Proposed actions and their current status (Red/Green) are listed below :-

  1. Image The guiding issue whilst operating west of Meridian has been sent off to Steve Collingwood (SC telescopes) for his further diagnosis, recommendation and assessment of the specific question over whether there would be a benefit in fitting a new Dec Guide Motor Unit ?
  2.  Image Dec Guide Mode should be selected based on Scope Azimuth rather than auto-measured for each target.  

      There is enough measurements to show that the required Dec Mode correlates with the specific side of the meridian that the scope is pointing to.

      The option of returning to auto-measurment of star drift/required Dec mode should be retained in event that telescope is re-aligned at some future point.
     
  3.  Image Dec Guide mode should be changable during the course of imaging, which might happen when the scope passes across the Meridian or the guide star is off position in Dec and can only be brought back onto lock position by guiding in the opposite Dec direction.
     
      Changes in Dec Mode should in general always be made at the end of an image frame, rather than in the midde of a frame.
      A 30s hold should be added
    to allow guiding to resettle after making chnage to Dec Mode
     
  4.  Image Imaging should be briefly paused after making a focuser change or a DecMode change to allow sufficient time for autoguiding to reposition the guide star on the lock position
     
  5.  Image Focus Changes shouldn't be deferred after focusing run but should instead  be made directly after focusing if FirstTargetFilter is not "C"

Actions were completed in AstroMain 3.43.4 (2021-10-07), but haven't yet undergone a live session test.

Back to Top


Investigation - Connection to UPB Powerbox lost / Obs.Monitor freezing in 'Monitor Powerbox' (2021-10-07 17:04)

Issue: Connection to UPB Powerbox lost / Obs.Monitor freezing in 'Monitor Powerbox' (2021-10-07 17:04).  

Description: 
Connection to UPB Powerbox lost around 17:04 and led in someway to the Obs.Monitor freezing, with lost of Observatory monitoring, lost of Obs Viewer updates & lost of DewHeater control.    The occcasional temporary loss of the UPB.Switch connection is an ongoing issue. Normally the Service can simply be stopped and restarted, and everthing continues ok (see case at 10:10). 

However sometimes the service can not be restarted  (see case at 17:04). Trace messages indicates that the restart process gets as far as point 3 (post New ASCOM.DriverAccess.Switch) but doesn't reach point 4 which would normally occur after successfully reconnecting to objPowerBox. Report file shows an AddComment message "PowerBox Switch:"  but without the expected follow-up message, either a "Ok" or a "Fail"

It is likely that further progress to restarting the service was held up by a modal dialog box that was presented by UPB driver or Software.  Clicking ok on the dialog box the following morning (2021-10-08 10:17) led to "Fail  Unable to connect (ASCOM.pegasus_upb.Switch).  Twarted by this fail outcome, the 'restart' operation then automatically proceeded with an attempt to restart the UPB Software and Services.   Whilst this restart completed the operation to  connect to UPB.Switch failed "Unable to connect (ASCOM.pegasus_upb.Switch)".   It was not until after Services were manually stopped and then restarted did the UPB.Switch connection work normally again.

Time line is as follows:


10:10:45.74 | Observatory Monitor   Restart UPB.Switch Alert | Attempt restart of UPB.Switch due to unexpected disconnection
10:10:45.84 | Observatory Services  Stop UPB.Switch Ok | Service stopped (B)
10:10:45.84 | Observatory Services  (trace) RestartSwitch(1) Info | Tracing Restart Switch - pre IsNothing(objPowerBox)
10:10:45.84 | Observatory Services  (trace) RestartSwitch(2) Info | Tracing Restart Switch - post IsNothing(objPowerBox)
10:10:45.87 | Observatory Services  (trace) RestartSwitch(3) Info | Tracing Restart Switch - post New ASCOM.DriverAccess.Switch
10:10:45.87 | Observatory Services  (trace) RestartSwitch(4) Info | Tracing Restart Switch - post objPowerBox.Connected = True
10:10:45.87 | Observatory Services  (trace) RestartSwitch(5) Info | Tracing Restart Switch - post AscomName = objPowerBox.Name
10:10:45.87 | Observatory Services  Start UPB.Switch Ok | Service started (Pegasus Powerbox Switch)
> UPB.Switch     Alert Unexpected disconnection of UPB.Switch (10:10). Attempting restart...
PowerBox Switch: Ok    Stopped
PowerBox Switch: Ok    Started (10:10) (Pegasus Powerbox Switch)

17:04:51.06 | Observatory Overseer  Check ObsMonitor Info | Obs.Monitor is Pending (6s) in section : Monitor Focuser2
17:04:51.70 | Observatory Worker    Check DewHeater Fail | objPowerBox2 is not connected
17:04:52.15 | Observatory Monitor   Check ObsMonitor Info | Obs.Monitor has resumed (cycle = 7.3s)
17:04:52.15 | Observatory Monitor   Check ObsMonitor Info | Breakdown (ms) : PowerboxEnv: 4245, Focuser2: 2527,
17:04:52.19 | Observatory Monitor   Restart UPB.Switch Alert | Attempt restart of UPB.Switch due to unexpected disconnection
17:04:52.29 | Observatory Services  Stop UPB.Switch Ok | Service stopped (B)
17:04:52.29 | Observatory Services  (trace) RestartSwitch(1) Info | Tracing Restart Switch - pre IsNothing(objPowerBox)
17:04:52.29 | Observatory Services  (trace) RestartSwitch(2) Info | Tracing Restart Switch - post IsNothing(objPowerBox)
17:04:52.36 | Observatory Services  (trace) RestartSwitch(3) Info | Tracing Restart Switch - post New ASCOM.DriverAccess.Switch
17:05:01.09 | Observatory Overseer  Check ObsMonitor Info | Obs.Monitor is Pending (9s) in section : Monitor PowerBox
17:05:06.09 | Observatory Overseer  Check ObsMonitor Alert | Obs.Monitor is Frozen (14s) in section : Monitor PowerBox
17:05:11.10 | Observatory Overseer  Check ObsMonitor Alert | Obs.Monitor is Frozen (19s) in section : Monitor PowerBox
17:05:51.60 | Observatory Worker    Check DewHeater Fail | objPowerBox2 is not connected
> UPB.Switch      Alert   Unexpected disconnection of UPB.Switch (17:04). Attempting restart...
PowerBox Switch:  Ok      Stopped
PowerBox Switch:

Next day:
Fail  Unable to connect (ASCOM.pegasus_upb.Switch)

10:17:14.81 | Observatory Services   Start UPB.Switch   Fail | Unable to connect (ASCOM.pegasus_upb.Switch)
10:17:14.81 | Observatory Services   Start UPB.Switch   Fail | CommandString
10:17:14.82 | Observatory Services   Restart UPB Info        | Raising bRestartPowerboxConnection flag
10:17:15.24 | Observatory Monitor    Check ObsMonitor   Info | Obs.Monitor has resumed (cycle = 61,943.1s)
10:17:15.24 | Observatory Monitor    Check ObsMonitor   Info | Breakdown (ms) : Powerbox: 61942652,
10:17:19.08 | Obs.Manager            Start UPB.Restart  Info | Obs.Manager attempting to restart UPB Software & Services
10:17:19.08 | Observatory Services   Stop UPB.Switch      Ok | Service stopped
10:17:19.08 | Observatory Services   Stop UPB.Environment Ok | Service stopped
10:17:19.08 | Observatory Services   Stop UPB.Focuser     Ok | Service stopped
10:17:20.28 | Observatory Services   Do MonitorPowerBox Fail | Exception whilst monitoring PowerBox in RunObservatoryMonitoring
10:17:20.28 | Observatory Services   Do MonitorPowerBox Fail | Object reference not set to an instance of an object.
10:17:26.96 | Observatory Worker     Check DewHeater    Fail | objPowerBox2 is not 'nothing'
10:17:30.23 | Observatory Overseer   Check ObsManager  Alert | Obs.Manager is Frozen
10:17:34.51 | Observatory Services   Start UPB.Switch   Fail | Unable to connect (ASCOM.pegasus_upb.Switch)
10:17:34.51 | Observatory Services   Start UPB.Switch   Fail | CommandString
10:17:34.58 | Observatory Services   Start UPB.Environment Ok | Service started (Pegasus Astro Environment)
10:17:34.66 | Observatory Services   Start UPB.Focuser    Ok | Service started (Pegasus UPB Focuser)
10:18:08.76 | User Action            Stop Services Info      | User request to stop observatory services
10:18:08.78 | ---------------------------------------------------------------------------------------------------------
10:18:09.59 | Observatory Services   Stop UPB.Switch      Ok | Service stopped
10:18:09.59 | Observatory Services   Stop UPB.Environment Ok | Service stopped
10:18:09.61 | Observatory Services   Stop UPB.Focuser     Ok | Service stopped
10:18:53.34 | User Action            Start Services     Info | User request to start observatory services
10:18:53.36 | ---------------------------------------------------------------------------------------------------------
10:18:53.36 | Observatory Services   Start Services      Try | Starting Observatory Services
10:18:53.61 | Observatory Services   Start UPB.Switch     Ok | Service started (Pegasus Powerbox Switch)
10:18:53.67 | Observatory Services   Start UPB.Environment Ok | Service started (Pegasus Astro Environment)
10:18:53.76 | Observatory Services   Start UPB.Focuser    Ok | Service started (Pegasus UPB Focuser)

Stopping Powerbox Services 2021-10-08 10:17 (Local)
PowerBox Switch: Ok Stopped
PowerBox Env: Ok Stopped
PowerBox Foc2: Ok Stopped

Stopping Powerbox Software 2021-10-08 10:17 (Local)
Stopping UPB **
> Obs.Overseer Info Obs.Monitor has resumed again (10:17)
** Ok
Sleeping 2s.. Ok

Restarting Powerbox Software    2021-10-08 10:17 (Local)
Setting UPB serialport    Ok    USB Serial Port (COM6)
UPB                       Ok    Started (10:17) (UPB.exe)
Sleeping 5s ...           Ok

Restarting Powerbox Services..
PowerBox Switch:          Fail  Unable to connect (ASCOM.pegasus_upb.Switch)
PowerBox Env:             Ok    Started (10:17) (Pegasus Astro Environment)
PowerBox Foc2:            Ok    Started (10:17) (Pegasus UPB Focuser

Stop Observatory Services 2021-10-08 10:18 (Local)
PowerBox Switch:          Ok    Stopped
PowerBox Env:             Ok    Stopped
PowerBox Foc2:            Ok    Stopped
Start Observatory Services 2021-10-08 10:18 (Local)
PowerBox Switch:          Ok    Started (10:18) (Pegasus Powerbox Switch)
PowerBox Env:             Ok    Started (10:18) (Pegasus Astro Environment)
PowerBox Foc2:            Ok    Started (10:18) (Pegasus UPB Focuser)

Analysis of the problem

In the event that the problem with the UPB.Switch Connection is not temporary and can't be easily restarted, it leads to the modal dialog box hold-up issue, and the 'restart' operation to freeze.   When this happens a separate thread needs to identify that this happened and perform the attempted remedial operation to  kill and restart the UPB Software.

It is probably  best if the initial attempt to restart UPB.Switch is itself a separate thread so that if the it does stall it doesn't stall the entire main ObsMonitor/ObsViewer loop

If the remedial operation doesn't fix the UPB Switch then run code to stop and restart all UPB services

Restart operation probably requires a 'flag' to indicate that restart is in operation, so that Obs.Monitor & Obs.Worker can skip access to UPB.Switch / Focuser whilst the flag is raised.

Actions
1) Image Modifty ObsMonitor code to spawn the restart of UPB.Switch as a separate thread (RunRestartSwitch()).
          Create flag  / timepoint to show the status of thread to highlight a stalled condition (bRunningRestartSwitch (boolean) & StartedRestartSwitchTime (Date)
2) Image Create code section in Obs.Overseer to spot a 'stalled UPB.Switch restart' and implement remedial operation via a threaded operation (RunRestartUPB)
3) Image Create and utilise new flag 'bRunningRestartUPB

Changes made to AstroMain 3.43.4 (2021-10-08)

Back to Top