示例#1
0
    def read(self):
        if DaqAsyncTurn.is_my_turn(self.name):
            DaqMultiPlotter.send_data(self.data)

            # Wait for new data on Ring Buffer
            DaqDictRingBuffer.status(status=False)
            DaqAsyncTurn.next_turn()
示例#2
0
    def read(self):
        if DaqAsyncTurn.is_my_turn(self.name):
            DaqMultiPlotter.send_data(self.data)

            # Wait for new data on Ring Buffer
            DaqDictRingBuffer.status(status=False)
            DaqAsyncTurn.next_turn()
示例#3
0
    def __init__(self, samples_per_channel=1000):
        self.samples_per_channel = samples_per_channel
        self.name = 'plotter'

        DaqAsyncTurn.bind(self.name)

        DaqMultiPlotter.configure(samples_per_channel)
        DaqMultiPlotter.start()
示例#4
0
    def __init__(self, samples_per_channel=1000):
        self.samples_per_channel = samples_per_channel
        self.name = 'plotter'

        DaqAsyncTurn.bind(self.name)

        DaqMultiPlotter.configure(samples_per_channel)
        DaqMultiPlotter.start()
示例#5
0
    def __init__(self, samples_per_channel=1000):
        asyncore.dispatcher.__init__(self)
        self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
        self.samples_per_channel = samples_per_channel
        self.name = 'plotter'

        DaqMultiPlotter.configure(samples_per_channel)
        DaqMultiPlotter.start()
示例#6
0
    def handle_read(self):
        if DaqAsyncTurn.is_my_turn(self.name):
            data = DaqDictRingBuffer.extract(chunk=self.samples_per_channel)

            DaqMultiPlotter.send_data(data)

            # Wait for new data on Ring Buffer
            DaqDictRingBuffer.status(status=False)
            DaqAsyncTurn.next_turn()
示例#7
0
    def handle_read(self):
        if DaqAsyncTurn.is_my_turn(self.name):
            data = DaqDictRingBuffer.extract(chunk=self.samples_per_channel)

            DaqMultiPlotter.send_data(data)

            # Wait for new data on Ring Buffer
            DaqDictRingBuffer.status(status=False)
            DaqAsyncTurn.next_turn()
示例#8
0
    def __init__(self, samples_per_channel=15000, tree_channels={}):
        self.samples_per_channel = samples_per_channel
        self.name = 'async-plotter'
        self.data = defaultdict(dict)

        for group_name in tree_channels:
            for channel_name in tree_channels[group_name]:
                self.data[group_name][channel_name] = [0] * samples_per_channel

        DaqAsyncTurn.bind(self.name)

        DaqMultiPlotter.configure(samples_per_channel)
        DaqMultiPlotter.start()
示例#9
0
    def __init__(self, samples_per_channel=15000, tree_channels={}):
        self.samples_per_channel = samples_per_channel
        self.name = 'async-plotter'
        self.data = defaultdict(dict)

        for group_name in tree_channels:
            for channel_name in tree_channels[group_name]:
                self.data[group_name][channel_name] = [0] * samples_per_channel

        DaqAsyncTurn.bind(self.name)

        DaqMultiPlotter.configure(samples_per_channel)
        DaqMultiPlotter.start()
示例#10
0
 def handle_close(self):
     DaqMultiPlotter.stop()
示例#11
0
 def handle_expt(self):
     DaqMultiPlotter.stop()
示例#12
0
 def handle_close(self):
     DaqMultiPlotter.stop()
示例#13
0
 def handle_expt(self):
     DaqMultiPlotter.stop()