def _get_pv(obj):
    """
    returns PV name, prefix of None from ophyd object
    """
    if hasattr(obj, 'pvname'):
        return obj.pvname
    elif hasattr(obj, 'prefix'):
        return obj.prefix
