def detect_instruments(): '''Refresh NI DAQ instrument list.''' for name in nidaq.get_device_names(): qt.instruments.create('NI%s' % name, 'NI_DAQ', id=name)