def __init__(self, master=None, packedHighSpeed=True):
    self.maxtraces = 5
    self.selChan = 0

    Tk.Frame.__init__(self,master) # hack to make work in python2

    self.pack()
    self.figure = Figure(figsize=(15,7), dpi=100, facecolor='white')
       
    self.canvas = FigureCanvas(self.figure, master=self)
    self.canvas.show()
    self.canvas.get_tk_widget().pack(side=Tk.TOP, fill=Tk.BOTH, expand=1)
    self.toolbar = NaviationToolbar(self.canvas,self)
    self.toolbar.update()
    self.canvas._tkcanvas.pack(side=Tk.TOP, fill=Tk.BOTH, expand=1)

    self.pauseButton = Tk.Button(self,text="Pause",command=self.pause)
    self.pauseButton.pack(side=Tk.LEFT)

    self.playButton = Tk.Button(self,text="Play",command=self.play,state=Tk.DISABLED)
    self.playButton.pack(side=Tk.LEFT)

    self.prevButton = Tk.Button(self,text="Previous Trace",command=self.prevTrace,state=Tk.DISABLED)
    self.prevButton.pack(side=Tk.LEFT)

    self.nextButton = Tk.Button(self,text="Next Trace",command=self.nextTrace,state=Tk.DISABLED)
    self.nextButton.pack(side=Tk.LEFT)

    self.packedHighSpeed = packedHighSpeed
    self.femb = None
    self.iTrace = -1
    self.traces = []
    self.timestamps = []

    self.reset()
예제 #2
0
    def __init__(self, waveforms, metadata, master=None):
        Tk.Frame.__init__(self, master)  # hack to make work in python2

        self.pack()

        self.figure = Figure(figsize=(8, 8), dpi=100)
        self.axs = []
        for iPlot in range(16):
            self.axs.append(self.figure.add_subplot(4, 4, iPlot + 1))

        self.canvas = FigureCanvas(self.figure, master=self)
        self.canvas.show()
        self.canvas.get_tk_widget().pack(side=Tk.TOP, fill=Tk.BOTH, expand=1)
        self.toolbar = NaviationToolbar(self.canvas, self)
        self.toolbar.update()
        self.canvas._tkcanvas.pack(side=Tk.TOP, fill=Tk.BOTH, expand=1)

        self.draw_fft(waveforms, metadata)
예제 #3
0
    def __init__(self,
                 infilename,
                 sampleMax=None,
                 fullADCRange=False,
                 master=None):
        Tk.Frame.__init__(self, master)  # hack to make work in python2

        self.pack()

        self.figure = Figure(figsize=(8, 8), dpi=100)
        self.axs = []
        for iPlot in range(16):
            self.axs.append(self.figure.add_subplot(4, 4, iPlot + 1))

        self.canvas = FigureCanvas(self.figure, master=self)
        self.canvas.show()
        self.canvas.get_tk_widget().pack(side=Tk.TOP, fill=Tk.BOTH, expand=1)
        self.toolbar = NaviationToolbar(self.canvas, self)
        self.toolbar.update()
        self.canvas._tkcanvas.pack(side=Tk.TOP, fill=Tk.BOTH, expand=1)

        self.draw_trace(infilename,
                        sampleMax=sampleMax,
                        fullADCRange=fullADCRange)