コード例 #1
0
    def pulse(self, pulseLength):
        """Generate a single pulse. There can only be a single pulse going at any time.

        :param pulseLength: The length of the pulse.
        :type  pulseLength: float
        """
        hal.pulse(self.handle, pulseLength)
コード例 #2
0
    def pulse(self, channel, pulseLength):
        """Generate a single pulse. Write a pulse to the specified digital
        output channel. There can only be a single pulse going at any time.

        :param channel: The channel to pulse.
        :param pulseLength: The length of the pulse.
        :type  pulseLength: float
        """
        hal.pulse(self.port, pulseLength)
コード例 #3
0
    def pulse(self, channel, pulseLength):
        """Generate a single pulse. Write a pulse to the specified digital
        output channel. There can only be a single pulse going at any time.

        :param channel: The channel to pulse.
        :param pulseLength: The length of the pulse.
        :type  pulseLength: float
        """
        hal.pulse(self.port, pulseLength)
コード例 #4
0
    def pulse(self, channel, pulseLength):
        """Generate a single pulse. Write a pulse to the specified digital
        output channel. There can only be a single pulse going at any time.

        :param channel: The channel to pulse.
        :param pulseLength: The length of the pulse.
        :type  pulseLength: float
        """
        if self.port is None:
            raise ValueError("operation on freed port")
        hal.pulse(self.port, pulseLength)
コード例 #5
0
    def pulse(self, channel, pulseLength):
        """Generate a single pulse. Write a pulse to the specified digital
        output channel. There can only be a single pulse going at any time.

        :param channel: The channel to pulse.
        :param pulseLength: The length of the pulse.
        :type  pulseLength: float
        """
        if self.port is None:
            raise ValueError("operation on freed port")
        hal.pulse(self.port, pulseLength)
コード例 #6
0
    def pulse(self, pulseLength, *args):
        """Generate a single pulse. There can only be a single pulse going at any time.

        :param channel: Unused. Deprecated 2017.1.1.
        :param pulseLength: The length of the pulse.
        :type  pulseLength: float
        """
        if len(args) > 0:
            warnings.warn("Use of channel argument is deprecated.", DeprecationWarning)
            pulseLength = args[0]
        hal.pulse(self.handle, pulseLength)
コード例 #7
0
    def pulse(self, pulseLength, *args):
        """Generate a single pulse. There can only be a single pulse going at any time.

        :param channel: Unused. Deprecated 2017.1.1.
        :param pulseLength: The length of the pulse.
        :type  pulseLength: float
        """
        if len(args) > 0:
            warnings.warn("Use of channel argument is deprecated.",
                          DeprecationWarning)
            pulseLength = args[0]
        hal.pulse(self.handle, pulseLength)
コード例 #8
0
    def pulse(self, pulseLength: float) -> None:
        """Generate a single pulse. There can only be a single pulse going at any time.

        :param pulseLength: The length of the pulse.
        """
        hal.pulse(self.handle, pulseLength)