Hi Bob
Occasionally it happens that the scope does not connect during StartupObs, but instead of reporting an exception it just reports 'OK'. I've customised StartupObs quite a lot and I've attached the full file, but the relevant code is:
Code:
try {
if(!Telescope.Connected) {
Util.WaitForMilliseconds(5000);
Console.PrintLine("Connect ACP to the telescope, will auto-home if needed");
Telescope.Connected = true; // (Requires driver "home on connect")
Console.PrintLine("OK");
} else {
Console.PrintLine("Telescope already connected");
}
} catch(ex) {
Console.PrintLine("**StartupObs Failed to connect to the Telescope:");
Console.PrintLine(" " + ex.description);
throw new Error(0x80040001, "==== Startup failed, cannot continue");
}
I would prefer the startup to fail so I get an email notification and can take corrective action. I was hoping you might spot why this is happening (not the failure to connect, but the failure to report the failure).
Thanks
Peter.