Auto-detect pulse output