code: def get_ai_chans(dev):
      
      buf = create_string_buffer(512)
      buflen = c_uint32(sizeof(buf))
      DAQmxGetDevAIPhysicalChans(dev.encode(), buf, buflen)
      pybuf = buf.value
      chans = pybuf.decode(u'utf-8').split(u", ")
      return chans
docs: Discover and return a list of the names of all analog input channels for the given device
      
      :param dev: the device name
      :type dev: str