There are 3 situations where it would be necessary to load a window table during a slew to a GRB

If we are slewing to a settling exposure (and therefore running the rts 'slew_to_settling')

slewing to a finding chart (rts 'slew_to_fc') and

slewing to a normal AT exposure (rts 'slew_to_at').

The proc ptecr216 was written to run a sequence of 3 PT exposures in which the outer two exposures have detector window offsets of (41,46) and a size of (38,38). The middle one has the normal full detector settings. The test commences with running this proc. Thus the loaded table would, at the end, be for the non-full detector.

The proc atecr216 was then run. This simulates a slew to a GRB with IS_NEW_AT_SLEW = TRUE.

The message 'Window Table Load Okay' indicates a table was reloaded, as expected, whilst running rts 'slew_to_settling'. If it had not been reloaded, the message 'Window Table Already Loaded' would have been seen (and indeed was on the subsequent finding chart exposure). The f/c exposure was allowed to go to completion to ensure that the subsequent call to at2ecr216 did not try to run another finding chart.

The proc ptecr216 was then rerun to reset the table to non-full detector again.

The proc at2ecr216 was then run. This simulates a slew to a GRB with IS_NEW_AT_SLEW = FALSE. The message 'Window Table Load Okay' indicates a table was reloaded, as expected, whilst running rts 'slew_to_at'.

The proc ptecr216 was then rerun to reset the table to non-full detector again.

The proc saaon was then run, to simulate a passage into the SAA.

The proc atecr216 was then rerun. As we were in SAA, the Settling-Finding Chart-AT exposures sequence was suppressed and the 'spacecraft' ended up in settled.

The proc saaoff was then run to take the 'spacecraft' out of the SAA. As expected, the suppressed Settling-Finding Chart-AT exposures sequence required by atecr216 then started up. However, by this time the spacecraft was settled, so the settling exposure was suppresed and the rts 'slew_to_finding' chart commenced instead.

The proc ptecr216 was then rerun to reset the table. However, this time the proc atecr216 was run whilst the middle (full detector window) exposure was active. Consequently it should not be necessary to reload any tables.