code: def updateConfig(self, eleobj, config, type='simu'):
          
          eleobj.setConf(config, type=type)
docs: write new configuration to element
  
              :param eleobj: define element object
              :param config: new configuration for element, string or dict
              :param type: 'simu' by default, could be online, misc, comm, ctrl