def __init__(self, module): IOModule.__init__(self, module) self._serial = None max_instrument = 0 for di in self.digital_in: max_instrument = max([di['instrument_address'] or 0, max_instrument]) max_instrument = max_instrument + 1 self._digital_group = [] for i in range(0, max_instrument): self._digital_group.append([]) for di in self.digital_in: instrument_address = di['instrument_address'] or 0 self._digital_group[instrument_address].append(di) self._number_of_instrument = max_instrument self.start_acquisition_thread()
def __init__(self, module): IOModule.__init__(self, module) self._serial = None max_instrument = 0 for di in self.digital_in: max_instrument = max( [di['instrument_address'] or 0, max_instrument]) max_instrument = max_instrument + 1 self._digital_group = [] for i in range(0, max_instrument): self._digital_group.append([]) for di in self.digital_in: instrument_address = di['instrument_address'] or 0 self._digital_group[instrument_address].append(di) self._number_of_instrument = max_instrument self.start_acquisition_thread()
def __init__(self, module): IOModule.__init__(self, module) self.start_acquisition_thread()