Value of 1 for $$SEQUENCE_FAIL_STATUS

In the Environment Variable List, it says that for $$SEQUENCE_FAIL_STATUS, a value of 1=guide/calibration error.

In the Wiki, the section on environment variables has a list of possible values for $$SEQUENCE_FAIL_STATUS, and says that a value of 1 means Unknown Error.

Which is correct?

This is the list of values possible, text in editor is old when the counter return only the guide error:

    NO_ERROR = 0

    UNKNOW_ERROR = 1

    START_ERROR = 2
    SETUP_NOT_CONNECTED = 3
    CANNOT_LOAD_SEQUENCE_FILE = 4
    TARGET_POINTING_DATA_ERROR = 5
    TIME_START_END_CALCULATION_ERROR = 6
    NO_NIGHT_CONDITION = 7

    INTERNAL_ERROR = 8

    GUIDE_CALIBRATION_ERROR = 9
    PRECISE_POINTING_ERROR = 10
    ACQUIRE_GUIDE_STAR_ERROR = 11
    MERIDIAN_FLIP_WATCHDOG_RETRY_END = 12
    START_GUIDING_RETRY_END_ERROR = 13
    FSM_UNKNOW_STATUS = 14
    TELESCOPE_NOT_CONFIGURED_CONNECTED_ERROR = 15
    CAMERA_NOT_CONFIGURED_CONNECTED_ERROR = 16
    ROTATOR_NOT_CONFIGURED_CONNECTED_ERROR = 17
    GUIDE_NOT_CONFIGURED_CONNECTED_ERROR = 18
    GUIDE_EMPASS_ERROR = 19
    GUIDE_BINNING_NOT_SUPPORTED_ERROR = 20
    SEQUENCE_EMPTY_ERROR = 21
    SEQUENCE_NOT_PLANNED_ERROR = 22
    FOLDER_CREATION_ACCESS_ERROR = 23
    DOME_SLAVE_ERROR = 24
    FLAT_DEVICE_ERROR = 25
    TIME_WAIT_ERROR = 26
    EXEC_EXTERNAL_ERROR = 27
    COOLING_ERROR = 28
    DONUTS_ERROR = 29
    GUIDE_RESET_ERROR = 30
    GOTO_ERROR = 31
    ROTATOR_ERROR = 32
    AUTOFOCUS_ERROR = 33
    GUIDE_START_ERROR = 34
    MOUNT_PARKED_ERROR = 35
    MOUNT_TRACKING_STOPPED_WATCHDOG_RETRY_END = 36
    CAMERA_SHOT_ERROR = 37
    DITHERING_ERROR = 38
    GUIDE_STOP_ERROR = 39
    GOODNIGHT_ERROR = 40
    FILTER_WRONG_INDEX = 41

Thanks! I appreciate the quick response. :slight_smile:

-Dan

How can I use $$SEQUENCE_FAIL_STATUS in an error trap?

Occasionally my mount has a glitch and seems to stop communicating with the ASCOM hub, and I want to trap that error. I’d like to use a command like:

If Error
DO IF DECIMAL_VALUE (Extended): $$SEQUENCE_FAIL_STATUS is Equal to 1

or similar. However I can’t seem to get it to work. Is my syntax wrong? I’ve also tried ##$$SEQUENCE_FAIL_STATUS##

Does anyone have an example of this in a script?

I’ve had another try at this, and below I’ve added my script snippet.

I think my problem might have been that $$SEQUENCE_FAIL_STATUS is a string variable and I was using syntax for a numeric.

I have no idea whether this approach will enable me to completely trap and manage the error (I still don’t know where the glitch is starting) but I really like the error trapping enabled in dragscripts.

Can anyone give me some advice on my syntax?

120 - Block: Get the shots
121 - Update String: Last_block - “Get the shots”
122 - Enable Events
123 - DO IF DOME/ROOF CLOSED
124 - Open Shutter
125 - Sequence: Start and End from Sequence - C:\Users\Obser\OneDrive\Documents\Voyager\ConfigSequence\Tonights_5x300s_HaOiii.s2q
126 - If Error
127 - Remark: There’s a good chance that the first time the sequence runs the dome will still be moving when autofocus starts.
128 - Remark: $$SEQUENCE_FAIL_STATUS should help us determine what to do
129 - DO IF STRING VALUE: $$SEQUENCE_FAIL_STATUS is Equal to “37”
130 - Remark: CAMERA_SHOT_ERROR = 37 seems to be when the mount driver dies.
131 - Close Shutter
132 - Raise Emergency Exit Event
133 - DO IF STRING VALUE: $$SEQUENCE_FAIL_STATUS is Equal to “10”
134 - Remark: PRECISE_POINTING_ERROR = 10 would be if the plate solving started before the dome stopped
135 - Remark: Wait 30 seconds, then start the sequence again
136 - Wait Time: 00:00:30 [hh:mm:ss] Interval
137 - GoTo Block: Get the shots
138 - If SKIPPED
139 - Remark: If the outcome is “skipped” it probably means the target has sunk.
140 - GoTo Block: Normal end
141 - Repeat Block Until Astronomical Night End: Manual Data [LAT:38° 48’ 16" S LON: 144° 40’ 35" E] - Offset (Before) 00:30:00 [hh:mm:ss]
142 - Block: Normal end