Hi Masterly,
You didn't attach either of your VIs, so it's a little more difficult to give good tips.
That being said, what you're describing is essentially programmed using a pair of nested For loops - probably you'll need your code from Q to be inside the inner loop, and the stepping part of M to be in the outer loop (before or after the inner loop, depending on your initial condition. I'd guess before would work best...).
You won't need M to trigger S, if you're actually only measuring after rotations.
Instead, just ensure that M completes the step before you start Q0 in the inner For loop. A blocking move is what you need here (i.e. a VI that moves the stage, but doesn't finish the VI until the stage has finished moving). You might need the "trigger" or pulse from M to determine when this is true if you can't get a blocking move (because then you can have a VI that checks for the pulse and doesn't return until it finishes).
For more detailed/direct help, please attempt what I've described then attach your new (semi-combined) VI and we can go forward from there.
If you have questions, you can of course ask those first! 🙂