Discover and return a list of the names of all NI devices on this system

def get_devices():
    """Discover and return a list of the names of all NI devices on this system"""
    buf = create_string_buffer(512)
    buflen = c_uint32(sizeof(buf))
    DAQmxGetSysDevNames(buf, buflen)
    pybuf = buf.value
    devices = pybuf.decode(u'utf-8').split(u",")
    return devices