A method for operating a microcode sequencer in a nuclear magnetic resonance imaging system, said microcode sequencer including a control store for storing a sequence of instructions including WAIT instructions and other instructions, a clock generator for generating clock pulses, and control logic means connected to an external gating input and connected to fetch and execute said sequence of instructions from said control store, said sequencer defining a changeable state that is determined at least in part by said sequence of instructions, said method performed by said control logic means in execution of said sequence of instructions, in response to receipt of a WAIT instructions, said method comprising the following steps:
- (a) detecting, in said nuclear magnetic resonance imaging system, whether a level existing on said external gating input is at a first level or at a second level different from said first level,
- (b) if said first level is detected, waiting in response to said receipt of sadi WAIT instruction until said external gating input changes levels and a generated clock pulse occurs before changing sequencer state in response to a fetched next instruction in said sequence, and
- (c) if said second level is detected, changing said sequencer state in response to the fetched next instruction when a generated clock pulse occurs without waiting for said external gating input to change levels if said second level is detected.