Discover and return a list of the names of all analog output channels for the given device

    :param dev: the device name
    :type dev: str

def get_ao_chans(dev):
    """Discover and return a list of the names of all analog output channels for the given device

    :param dev: the device name
    :type dev: str
    """
    buf = create_string_buffer(256)
    buflen = c_uint32(sizeof(buf))
    DAQmxGetDevAOPhysicalChans(dev.encode(), buf, buflen)
    pybuf = buf.value
    chans = pybuf.decode(u'utf-8').split(u",")
    return chans