For a long time, I tried the "don't switch" mentality. But you just waste a lot of time.
Solutions are:
1. Avoid it by running shorter experiments - requires intellectual effort and is much like the advice in the article.
2. Do something else, but something related to what you're doing. That way, it's not a total cognitive switch. Classic example is working out ideas for how you might best present data whilst an experiment is running, or how you might further automate the process etc.
3. If you have to switch, then do something that can easily be dropped. Usually I read a (scientific) paper whilst I wait - this could be vaguely related to the experiments I'm waiting on.