def get_constraints(self): """ Get hardware limits the device @return SlowCounterConstraints: constraints class for slow counter FIXME: ask hardware for limits when module is loaded """ constraints = SlowCounterConstraints() constraints.max_detectors = 2 constraints.min_count_frequency = 1e-3 constraints.max_count_frequency = 10e9 constraints.counting_mode = [CountingMode.CONTINUOUS] return constraints
def get_constraints(self): """ Get hardware limits of NI device. @return SlowCounterConstraints: constraints class for slow counter FIXME: ask hardware for limits when module is loaded """ constraints = SlowCounterConstraints() constraints.max_detectors = 4 constraints.min_count_frequency = 1e-3 constraints.max_count_frequency = 10e9 constraints.counting_mode = [CountingMode.FINITE_GATED] return constraints
def get_constraints(self): """ Get hardware limits the device @return SlowCounterConstraints: constraints class for slow counter FIXME: ask hardware for limits when module is loaded """ # TODO: See if someone needs this method, at the moment it is not being used. constraints = SlowCounterConstraints() constraints.max_detectors = 2 constraints.min_count_frequency = 1e-3 constraints.max_count_frequency = 10e9 constraints.counting_mode = [CountingMode.CONTINUOUS] return constraints
def get_constraints(self): """ Retrieve the hardware constrains from the counter device. :return: (SlowCounterConstraints) object with constraints for the counter """ constraints = SlowCounterConstraints() # TODO: check values constraints.min_count_frequency = 1 constraints.max_count_frequency = 10e9 constraints.max_detectors = 8 constraints.counting_mode = [CountingMode.CONTINUOUS] return constraints
def get_constraints(self): """ Returns hardware limits on qutau's counting ability. @return SlowCounterConstraints: object with constraints. """ c = SlowCounterConstraints() c.max_detectors = 8 # Highest count frequency limited by min exposure time (1 ms) c.max_count_frequency = 1 / 1e-3 # Lowest count frequency limited by max exposure time (65536 ms) # or preset timeout, whichever is lower c.min_count_frequency = 1 / min(65.5, self._timeout) c.counting_mode = [CountingMode.CONTINUOUS] return c