Пример #1
0
    def __init__(self, traceSource=None, name=None):
        self._enabled = False
        PassiveTraceObserver.__init__(self)
        if name is None:
            TraceSource.__init__(self, self.getName())
        else:
            TraceSource.__init__(self, name=name)
        if isinstance(traceSource, Project):
            traceSource = traceSource.trace_manager()
        self.setTraceSource(traceSource, blockSignal=True)
        if traceSource:
            #until new analyzer is implemented

            traceSource.sigTracesChanged.connect(
                self.sigTracesChanged.emit
            )  # Forwards the traceChanged signal to the next observer in the chain
        self.getParams().addChildren([{
            'name': 'Enabled',
            'key': 'enabled',
            'type': 'bool',
            'default': self._getEnabled(),
            'get': self._getEnabled,
            'set': self._setEnabled
        }])
        self.findParam('input').hide()

        self.register()
        if __debug__: logging.debug('Created: ' + self._name)

        #Old attribute dict
        self._attrdict = None
        self.enabled = True
Пример #2
0
    def __init__(self, traceSource=None):
        self.enabled = False
        ActiveTraceObserver.__init__(self)
        TraceSource.__init__(self, self.getName())
        AutoScript.__init__(self)
        self.setTraceSource(traceSource, blockSignal=True)
        if traceSource:
            traceSource.sigTracesChanged.connect(
                self.sigTracesChanged.emit
            )  # Forwards the traceChanged signal to the next observer in the chain
        self.getParams().addChildren([{
            'name': 'Enabled',
            'key': 'enabled',
            'type': 'bool',
            'default': self.getEnabled(),
            'get': self.getEnabled,
            'set': self.setEnabled
        }])
        self.findParam('input').hide()

        self.register()
        if __debug__: logging.debug('Created: ' + str(self))

        #Old attribute dict
        self._attrdict = None
Пример #3
0
    def __init__(self, traceSource=None):
        self.enabled = False
        ActiveTraceObserver.__init__(self)
        TraceSource.__init__(self, self.getName())
        AutoScript.__init__(self)
        self.setTraceSource(traceSource, blockSignal=True)
        if traceSource:
            traceSource.sigTracesChanged.connect(
                self.sigTracesChanged.emit
            )  # Forwards the traceChanged signal to the next observer in the chain
        self.getParams().addChildren(
            [
                {
                    "name": "Enabled",
                    "key": "enabled",
                    "type": "bool",
                    "default": self.getEnabled(),
                    "get": self.getEnabled,
                    "set": self.setEnabled,
                }
            ]
        )
        self.findParam("input").hide()

        self.register()
        if __debug__:
            logging.debug("Created: " + str(self))
Пример #4
0
 def __init__(self, name = "Trace Management"):
     TraceSource.__init__(self, name)
     self.name = name
     self.dirty = util.Observable(False)
     self._numTraces = 0
     self._numPoints = 0
     self._sampleRate = 0
     self.lastUsedSegment = None
     self.traceSegments = []
     if __debug__: logging.debug('Created: ' + str(self))
Пример #5
0
 def __init__(self, name="Trace Management"):
     TraceSource.__init__(self, name)
     self.name = name
     self.dirty = util.Observable(False)
     self._numTraces = 0
     self._numPoints = 0
     self._sampleRate = 0
     self.lastUsedSegment = None
     self.traceSegments = []
     if __debug__: logging.debug('Created: ' + str(self))
Пример #6
0
 def __init__(self, parentParam=None, traceSource=None):
     self.enabled = False
     ActiveTraceObserver.__init__(self, parentParam=parentParam)
     TraceSource.__init__(self, self.getName())
     AutoScript.__init__(self)
     self.setTraceSource(traceSource, blockSignal=True)
     if traceSource:
         traceSource.sigTracesChanged.connect(self.sigTracesChanged.emit)  # Forwards the traceChanged signal to the next observer in the chain
     self.getParams().addChildren([
              {'name':'Enabled', 'key':'enabled', 'type':'bool', 'default':self.getEnabled(), 'get':self.getEnabled, 'set':self.setEnabled}
     ])
     self.findParam('input').hide()
Пример #7
0
 def dis(self):
     if self._dis():
         TraceSource.deregisterObject(self.getName() + " - Channel 1")
         self.connectStatus.setValue(False)
Пример #8
0
 def __init__(self, name="Unknown Channel"):
     TraceSource.__init__(self, name)
     self._lastData = []
     self._lastOffset = 0
     self._sampleRate = 0
Пример #9
0
 def __init__(self, name="Unknown Channel"):
     TraceSource.__init__(self, name)
     self._lastData = []
     self._lastOffset = 0
     self._sampleRate = 0