Stop buttons on command stations. Many of those will issue a "DCC all stop" command to the track, which causes all decoders to stop what they are doing, and stop instantly (ie. ignore deceleration curves, and stay-alive is irrelevant). So, to test a stay-alive you have to interrupt the actual track power.
CV29, pretty much essential that its set to "DCC only" for stay-alive to work (there will be a few exceptions which don't use this method). Stay alive modules mostly work by placing a DC voltage on the decoder inputs, immediately after a rectifier. Use on analogue (DC) places a DC voltage in the same place, so the decoder cannot tell the difference between stay-alive DC and track DC. Hence, necessary to disable analogue (DC) running.
CV113 (stay alive duration) is as Jordan explains things. You can do a lot of damage to a loco in 10 seconds of running off the track, or over 10 seconds stalled by a mechanical failure. For most cases, a stay-alive of half a second is vastly more than what's needed to deal with pickup issues, if a loco is stalled for more than that time/distance the track or pickups need attention. Running locos over a sheet of A4 paper is a good party trick, vaguely useful for testing, but irrelevant to sensible model running. So, set the stay-alive duration to a low value to ensure the decoder will shut power down after a very short period without power.
- Nigel