Asking for DTC's I do when engine is NOT running, so at the begin of the diagnostic process.
Live data is fine with systems running and make only sense if engine is running.
But I see no reason why a scan cannot be done in running mode of the engine. If it makes sense is a different thing.