Exemplo n.º 1
0
    def __init__(self, name, *args, **kwargs):
        '''Initializes the device:

    1. Sets the frame title. 1.
    2. Sets the refresh rate. 2.

    Function arguments:

    :param name: The name of the device

   '''
        super(MDevice, self).__init__()
        self.lockLoggingSettings = kwargs.get("lock_logging_settings", False)
        self.defaultLogLocation = kwargs.get("default_log_location", None)
        self.dataType = kwargs.get("data_type", "float32")
        # Create a new MFrame
        web.devices.append(self)
        self.frame = MFrame()
        # print "Setting title to:", name, args
        self.frame.setTitle(name)
        self.name = name
        self.refreshRate = 1
        self.container = None
        self.datachest = None
        self.keepGoing = True
        self.settingResultIndices = []
        self.notifier_mailing_lists = []
        self.doneLoading = False