Exemplo n.º 1
0
    def get_constraints(self):
        """ Return a constraints class for the slow counter."""
        constraints = SlowCounterConstraints()
        constraints.min_count_frequency = 5e-5
        constraints.max_count_frequency = 5e5
        constraints.counting_mode = [
            CountingMode.CONTINUOUS,
            CountingMode.GATED,
            CountingMode.FINITE_GATED]

        return constraints
    def get_constraints(self):
        """ Return a constraints class for the slow counter."""
        constraints = SlowCounterConstraints()
        constraints.min_count_frequency = 5e-5
        constraints.max_count_frequency = 5e5
        constraints.counting_mode = [
            CountingMode.CONTINUOUS, CountingMode.GATED,
            CountingMode.FINITE_GATED
        ]

        return constraints
Exemplo n.º 3
0
    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
Exemplo n.º 4
0
    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
Exemplo n.º 5
0
    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
Exemplo n.º 6
0
    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 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
Exemplo n.º 8
0
    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
Exemplo n.º 9
0
    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