コード例 #1
0
    def locked(self):
        """
        Gets the key switch lock status

        :return: `True` if key switch is locked, `False` otherwise
        :type: `bool`
        """
        return ctbool(self.reference("front-key-locked"))
コード例 #2
0
    def interlock(self):
        """
        Gets the interlock switch open state

        :return: `True` if interlock switch is open, `False` otherwise
        :type: `bool`
        """
        return ctbool(self.reference("interlock-open"))
コード例 #3
0
        def tec_status(self):
            """
            Gets the TEC status of the laser

            :return: The TEC status of the specified laser
            :type: `bool`
            """
            return ctbool(self.parent.reference(self.name + ":tec:ready"))
コード例 #4
0
    def interlock(self):
        """
        Gets the interlock switch open state

        :return: `True` if interlock switch is open, `False` otherwise
        :type: `bool`
        """
        return ctbool(self.reference("interlock-open"))
コード例 #5
0
    def locked(self):
        """
        Gets the key switch lock status

        :return: `True` if key switch is locked, `False` otherwise
        :type: `bool`
        """
        return ctbool(self.reference("front-key-locked"))
コード例 #6
0
        def tec_status(self):
            """
            Gets the TEC status of the laser

            :return: The TEC status of the specified laser
            :type: `bool`
            """
            return ctbool(self.parent.reference(self.name + ":tec:ready"))
コード例 #7
0
        def enable(self):
            """
            Gets/sets the enable/disable status of the laser. Value of `True`
            is for enabled, and `False` for disabled.

            :return: Enable status of the specified laser
            :type: `bool`
            """
            return ctbool(self.parent.reference(self.name + ":emission"))
コード例 #8
0
        def mode_hop(self):
            """
            Gets whether the laser has mode-hopped

            :return: Mode-hop status of the specified laser
            :type: `bool`
            """
            response = self.parent.reference(self.name + ":charm:reg:mh-occurred")
            return ctbool(response)
コード例 #9
0
        def enable(self):
            """
            Gets/sets the enable/disable status of the laser. Value of `True`
            is for enabled, and `False` for disabled.

            :return: Enable status of the specified laser
            :type: `bool`
            """
            return ctbool(self.parent.reference(self.name + ":emission"))
コード例 #10
0
 def enable(self):
     """
     is the laser lasing?
     :return:
     """
     return ctbool(self.reference("emission"))
コード例 #11
0
 def enable(self):
     """
     is the laser lasing?
     :return:
     """
     return ctbool(self.reference("emission"))