Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Sep 2012
    Location
    Saltsjöbaden, Sweden
    Posts
    163

    Default The thing stopped during the night...

    God Morning (at least on this side of the ocean).

    I am currently in the "pre-purchase" phase and have my new observatory control center running with a full compliment of ACP stuff. I use the ASCOM simulators for scope, camera and focuser, and the ACP weather simulator to get myself and my stuff in order. A two-foot startup script and a dito shutdown one have been added to the schedulaer and I have submitted three observations.

    At around 17:00 yesterday the scheduler started acquiring images (59°N, dark comes early) and when I went to bed all looked fine. This morning I find that an overflow has occured in one of the ACP-supplied scripts when a CInt operation was attempted. Looking at the code:

    Code:
        Console.PrintLine "    [flip check: " & _ 
            " Tn=" & CInt(timeNeeded) & "s" & _ 
            " HAc=" & CInt(Util.HourAngle12(Telescope.RightAscension) * 3600) & "s" & _  
            " GW=" & gw & _ 
            " HAz=" &  CInt(Util.HourAngle12(z) * 3600) & "s" & _ 
            " DWz=" & dwz & _ 
            " WF=" & wfs & "]"
    And the log section:

    Code:
    27-nov-2012 23:19:46.1: Dispatcher cycle time: 0.2180125 sec.
    27-nov-2012 23:19:46.1: Acquire data for Observation NGC 7380...
    27-nov-2012 23:19:46.1:   (belongs to Project NGC 7380, Plan NGC 7380-B (1-20))
    27-nov-2012 23:19:46.2: Send Observation NGC 7380 to ACP Sequencer
    28-nov-2012 00:24:34.1: Acquisition time: 3887.9433777 sec.
    28-nov-2012 00:24:34.1: Data for Observation NGC 7380 acquired successfully.
    28-nov-2012 00:24:34.2: Image Efficiency: 92.6%
    28-nov-2012 00:24:34.2: Cycle Efficiency: 100.0%
    28-nov-2012 00:24:34.5: Dispatcher cycle time: 0.1840106 sec.
    28-nov-2012 00:24:34.5: Acquire data for Observation NGC 7380...
    28-nov-2012 00:24:34.5:   (belongs to Project NGC 7380, Plan NGC 7380-G (1-20))
    28-nov-2012 00:24:34.5: Send Observation NGC 7380 to ACP Sequencer
    28-nov-2012 01:28:35.1: Acquisition time: 3840.5746683 sec.
    28-nov-2012 01:28:35.1: Data for Observation NGC 7380 acquired successfully.
    28-nov-2012 01:28:35.2: Image Efficiency: 93.7%
    28-nov-2012 01:28:35.2: Cycle Efficiency: 100.0%
    28-nov-2012 01:28:35.4: Dispatcher cycle time: 0.1010057 sec.
    28-nov-2012 01:28:35.4: Acquire data for Observation NGC 7380...
    28-nov-2012 01:28:35.4:   (belongs to Project NGC 7380, Plan NGC 7380-R (1-20))
    28-nov-2012 01:28:35.5: Send Observation NGC 7380 to ACP Sequencer
    28-nov-2012 02:03:56.5: ** Sequencer script "AcquireScheduler" failed:
    28-nov-2012 02:03:56.5: **Script Error (Tracking has been stopped)**
    Source:  Microsoft VBScript runtime error
    Message: Overflow: 'CInt' at line 1801 column 5.
    
    
    28-nov-2012 02:03:59.5: ACP ERROR: Run failed due to script error (see ACP run log)
    28-nov-2012 02:03:59.5: ACP data acquisition failed for Observation NGC 7380.
    28-nov-2012 02:03:59.5:   (Observation NGC 7380 interrupted by acquisition process failure.)
    28-nov-2012 03:40:01.5: Dispatcher cycle time: 1.3090749 sec.
    28-nov-2012 03:40:01.5: Acquire data for Observation M 81...
    28-nov-2012 03:40:01.5:   (belongs to Project M 81, Plan M 81-R (37-48))
    28-nov-2012 03:40:01.5: Send Observation M 81 to ACP Sequencer
    28-nov-2012 04:52:28.9: Acquisition time: 4347.415658 sec.
    28-nov-2012 04:52:28.9: Data for Observation M 81 acquired successfully.
    28-nov-2012 04:52:29.0: Image Efficiency: 82.8%
    28-nov-2012 04:52:29.0: Cycle Efficiency: 100.0%
    28-nov-2012 04:52:29.9: Dispatcher cycle time: 0.7840449 sec.
    28-nov-2012 04:52:29.9: Acquire data for Observation M 81...
    28-nov-2012 04:52:29.9:   (belongs to Project M 81, Plan M 81-B (1-12))
    28-nov-2012 04:52:30.0: Send Observation M 81 to ACP Sequencer
    28-nov-2012 05:55:10.7: Acquisition time: 3760.7531028 sec.
    28-nov-2012 05:55:10.7: Data for Observation M 81 acquired successfully.


    So, one of the three CInts in that multi-line statement is going past the 32767 mark. Which can it be?

    Luckily, the system recovered from this and continued with M 81, and I have verified that there were actual images.

    Let me know what further information is needed in order to find it (complete log attached)!

    This is my very first run of ACP and I am truly impressed so far!


    All the best,

    Per Frejvall
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2005
    Location
    Alingsås, Sweden
    Posts
    121

    Default

    Hej Per.

    It's a newly found problem and will be fixed in ACP 7.


    Console.PrintLine " [flip check: " & _
    " Tn=" & CInt(timeNeeded) & "s" & _
    " HAc=" & CInt(Util.HourAngle12(Telescope.RightAscension) * 3600) & "s" & _
    " GW=" & gw & _
    " HAz=" & CInt(Util.HourAngle12(z) * 3600) & "s" & _
    " DWz=" & dwz & _
    " WF=" & wfs & "]"

    To solve it in the meantime change
    change the CInt() to CLng() in AutoFlipIf() -

  3. #3
    Join Date
    Sep 2012
    Location
    Saltsjöbaden, Sweden
    Posts
    163

    Default

    Hah! I knew it

    All of them or just one (or two)? I'll try with all and correct me if im wrong.

    Thanks for prompt reply!

    /per

  4. #4
    Join Date
    Nov 2005
    Location
    Alingsås, Sweden
    Posts
    121

    Default

    Only 2 is needed but changing all 3 works too.

    And welcome to the swedish ACP fanclub

  5. #5
    Join Date
    Sep 2012
    Location
    Saltsjöbaden, Sweden
    Posts
    163

    Default

    Thanks!

    I changed all three and we'll see what happens tonight. I want to see it in real time with all communication to MaximDL and Focusmax live.

    On another note, the shutdown (from scheduler) failed to run because of this. That, for sure, would have been a show stopper of massive proportions

    /p

  6. #6
    Join Date
    Oct 2005
    Location
    Mesa, AZ
    Posts
    33,770

    Default

    Thanks Robert!!! This thing "appeared" because it is winter in the far north!!!
    -- Bob

  7. #7
    Join Date
    Sep 2012
    Location
    Saltsjöbaden, Sweden
    Posts
    163

    Default

    It's kickin' pretty good now. I've had it running last night with no issues and it just started up the second "night" of imaging where it left off this morning. I'm checking on its behavior to find the right way of doing things. All in all I'm pretty impressed so far. I would, however, like some distinction between unsafe weather and just a bit cludy, the latter causing a pause but no other actions, and the former shutting down...

    /per

  8. #8
    Join Date
    Sep 2012
    Location
    Saltsjöbaden, Sweden
    Posts
    163

    Default

    And it hits me again... This time a few lines down in the same source code:

    Code:
    ACP console log opened 29-nov-2012 16:02:15 UTC
    This is ACP version 6.0 (build 11, Build for Hot Fix 4 (Nov 2011))
    Unlicensed copy - 30 day demo mode
    Licensed to 
    16:02:15 This is AcquireScheduler V3.5.2
    16:02:15 Custom auto-flip parameters are in use
    16:02:15   PreFlip=300 PostFlip=120 AF=300 PU=60
    16:02:15 Hardware GEM pier side reporting is available.
    16:02:15 This mount can be flipped on command.
    16:02:16 Initializing AcquireSupport V6.0.7
    16:02:16 Weather safe, server is Weather Server Simulator
    16:02:16 Telescope is ACP->Simulator, driver V3
    16:02:16 Dome is Simulator
    16:02:16  and must not close unless scope is parked
    16:02:16 MaxIm DL/CCD is version 5.23
    16:02:16 Imager is ASCOM
    16:02:16 Calculated unbinned plate scales (arcsec/pix): H = 3.12 V = 3.12
    16:02:16 Calculated field of view (arcmin): H = 41.6 V = 31.2
    16:02:16 ACPS Observation M 81(1 of 1)
    16:02:16   (belongs to Project M 81, Plan M 81-G (37-48))
    16:02:16   (turning on sidereal tracking)
    16:02:16 Pointing updates are enabled
    16:02:16   Start slew to M 81...
    16:02:17   (wait for slew to complete)
    16:02:19   (slew complete)
    16:02:19 **Autofocus requested, but it is disabled in ACP, skipped
    16:02:19   (skipping pointing update, last target close enough)
    16:02:19     [flip check:  Tn=600s HAc=42879s GW=T HAz=-42921s DWz=F WF=YES]
    16:02:19   (GEM must flip before next operation)
    16:02:19 **Script Error (Tracking has been stopped)**
    16:02:19 Source:  Microsoft VBScript runtime error
    16:02:19 Message: Overflow: 'CInt' at line 1818 column 9.
    ACP console log closed 29-nov-2012 16:02:19 UTC
    I'll change to CLng on line 1818 as well...

    The bad thing about this is that the scheduler doesn't run the shutdown script, so had this been a real run I would be left with an open dome - and it's snowing like heck here...

    /per

  9. #9
    Join Date
    Oct 2005
    Location
    Mesa, AZ
    Posts
    33,770

    Default

    The scheduler is not responsible for the shutdown. Your weather station should have reported unsafe weather to ACP, and ACP would immediately kill any job that is running, then run the ACP-Weather script, which will safe the observatory. Scheduler will not shut down just because the weather is unsafe, it might become OK later in the night! The ACP_Weather script should leave the observatory in a "stand by" condition ... it is OK if it does shut it down because Scheduler will run StartupObs when the weather becomes OK, but you probably don't want your equipment turned on and off during the night as weather goes from safe to unsafe to safe, etc.
    -- Bob

  10. #10
    Join Date
    Sep 2012
    Location
    Saltsjöbaden, Sweden
    Posts
    163

    Default

    Agreed. The weather station should have stopped it had it been for real. My bad...

    /per

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Autofocus has stopped working
    By PIRATE in forum FocusMax and PoleAlignMax Questions
    Replies: 6
    Last Post: Sep 24, 2012, 20:24
  2. Autoguider stopped
    By b_omarr in forum Hardware/Software/Driver Topics Not Directly Related to Our Software
    Replies: 1
    Last Post: Mar 8, 2011, 21:35
  3. DawnFlats script stopped
    By ebenson in forum Pre-Sales Technical Questions and Help
    Replies: 1
    Last Post: Jan 6, 2011, 16:05
  4. Using pointing corrector from night to night
    By David Rossitter in forum Pre-Sales Technical Questions and Help
    Replies: 4
    Last Post: Sep 2, 2010, 21:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •