It’s possible to plug in an OBD scanner while the engine is on, but it isn’t advised. You may need to cycle the ignition off and back on to initiate the test.