You’ll need to have the ignition in the on position, but the car doesn’t need to be running. You only need to have the car running if you’re trying out the live-data feature found on higher-end scanners. For more info on using a scanner, check out Carfax’s guide on how to use an OBD2 scanner. That said, be sure to follow the instructions for a particular scanner for best results.