Exemplo n.º 1
0
    def DOO(self):
        self.removeContent()
        self.DOOcontent = Label(self.contentFrame,
                                text="DOO Programmable Variables").pack()

        # programmable parameters inputs
        self.LRLLabel = Label(self.contentFrame,
                              text="Lower Rate Limit (BPM)").pack()
        self.LRLInput = Entry(self.contentFrame)
        self.LRLInput.pack()
        self.URLLabel = Label(self.contentFrame,
                              text="Upper Rate Limit (BPM)").pack()
        self.URLInput = Entry(self.contentFrame)
        self.URLInput.pack()
        self.FixedAVDelayLabel = Label(self.contentFrame,
                                       text="Fixed AV Delay (ms)").pack()
        self.FixedAVDelayInput = Entry(self.contentFrame)
        self.FixedAVDelayInput.pack()
        self.AtrAmplitudeLabel = Label(self.contentFrame,
                                       text="Atrial Amplitude (V)").pack()
        self.AtrAmplitudeInput = Entry(self.contentFrame)
        self.AtrAmplitudeInput.pack()
        self.AtrPulseWidthLabel = Label(self.contentFrame,
                                        text="Atrial Pulse Width (ms)").pack()
        self.AtrPulseWidthInput = Entry(self.contentFrame)
        self.AtrPulseWidthInput.pack()
        self.VentAmplitudeLabel = Label(
            self.contentFrame, text="Ventricular Amplitude (V)").pack()
        self.VentAmplitudeInput = Entry(self.contentFrame)
        self.VentAmplitudeInput.pack()
        self.VentPulseWidthLabel = Label(
            self.contentFrame, text="Ventricular Pulse Width (ms)").pack()
        self.VentPulseWidthInput = Entry(self.contentFrame)
        self.VentPulseWidthInput.pack()

        #save parameters button - will have to be updated
        self.write = Button(
            self.optionsFrame,
            text="Save Parameters",
            command=lambda: parameters.writeDOO(self.LRLInput.get(
            ), self.URLInput.get(), self.FixedAVDelayInput.get(
            ), self.AtrAmplitudeInput.get(), self.AtrPulseWidthInput.get(
            ), self.VentAmplitudeInput.get(), self.VentPulseWidthInput.get(
            ))).pack()  # Saves the parameters to the master file

        self.back = Button(self.optionsFrame,
                           text="Back To Main Screen",
                           command=lambda: self.mainScreen()).pack()
        self.textbutton = Button(self.optionsFrame,
                                 text="Turn TxRx ON",
                                 command=lambda: readtosend.readparameters(5),
                                 activebackground="red").pack()
        # self.textbutton2=Button(self.optionsFrame, text="Turn TxRx OFF", command = lambda: self.colorTxRx(0)).pack(side=RIGHT)
        # self.addTxRxDisplay() # add the txrx setup
        self.showEgram = Button(self.optionsFrame,
                                text="Show Egram",
                                command=lambda: egram.main()).pack()
Exemplo n.º 2
0
    def AAI(self):
        self.removeContent()
        self.AAIcontent = Label(self.contentFrame,
                                text="AAI Programmable Variables").pack()

        #programmable parameters inputs
        self.LRLLabel = Label(self.contentFrame,
                              text="Lower Rate Limit (BPM)").pack()
        self.LRLInput = Entry(self.contentFrame)
        self.LRLInput.pack()
        self.URLLabel = Label(self.contentFrame,
                              text="Upper Rate Limit (BPM)").pack()
        self.URLInput = Entry(self.contentFrame)
        self.URLInput.pack()
        self.AtrAmplitudeLabel = Label(self.contentFrame,
                                       text="Atrial Amplitude (V)").pack()
        self.AtrApmlitudeInput = Entry(self.contentFrame)
        self.AtrApmlitudeInput.pack()
        self.AtrPulseWidthLabel = Label(self.contentFrame,
                                        text="Atrial Pulse Width (ms)").pack()
        self.AtrPulseWidthInput = Entry(self.contentFrame)
        self.AtrPulseWidthInput.pack()
        self.ARP = Label(self.contentFrame,
                         text="Atrial Refractory Period (ms)").pack()
        self.ARPInput = Entry(self.contentFrame)
        self.ARPInput.pack()
        self.PVARP = Label(
            self.contentFrame,
            text="Post Ventricular Atrial Refractory Period (ms)").pack()
        self.PVARPInput = Entry(self.contentFrame)
        self.PVARPInput.pack()
        self.AtrSensitivitiyLabel = Label(
            self.contentFrame, text="Atrial Sensitivity (V)").pack()
        self.AtrSensitivityInput = Entry(self.contentFrame)
        self.AtrSensitivityInput.pack()

        self.write = Button(
            self.optionsFrame,
            text="Save Parameters",
            command=lambda: parameters.writeAAI(self.LRLInput.get(
            ), self.URLInput.get(), self.AtrApmlitudeInput.get(
            ), self.AtrPulseWidthInput.get(), self.ARPInput.get(
            ), self.PVARPInput.get(), self.AtrSensitivityInput.get())).pack(
            )  # Saves the parameters to the master file

        self.back = Button(self.optionsFrame,
                           text="Back To Main Screen",
                           command=lambda: self.mainScreen()).pack()
        self.textbutton = Button(self.optionsFrame,
                                 text="Turn TxRx ON",
                                 command=lambda: readtosend.readparameters(2),
                                 activebackground="red").pack()
        # self.textbutton2=Button(self.optionsFrame, text="Turn TxRx OFF", command = lambda: self.colorTxRx(0)).pack(side=RIGHT)
        # self.addTxRxDisplay() # add the txrx setup
        self.showEgram = Button(self.optionsFrame,
                                text="Show Egram",
                                command=lambda: egram.main()).pack()
Exemplo n.º 3
0
    def AOO(self):
        self.removeContent()
        self.AOOcontent = Label(self.contentFrame,
                                text="AOO Programmable Variables").pack()

        #programmable parameters inputs
        self.LRLLabel = Label(self.contentFrame,
                              text="Lower Rate Limit (BPM)").pack()
        self.LRLInput = Entry(self.contentFrame)
        self.LRLInput.pack()
        self.URLLabel = Label(self.contentFrame,
                              text="Upper Rate Limit (BPM)").pack()
        self.URLInput = Entry(self.contentFrame)
        self.URLInput.pack()
        self.AtrAmplitudeLabel = Label(self.contentFrame,
                                       text="Atrial Amplitude (V)").pack()
        self.AtrApmlitudeInput = Entry(self.contentFrame)
        self.AtrApmlitudeInput.pack()
        self.AtrPulseWidthLabel = Label(self.contentFrame,
                                        text="Atrial Pulse Width (ms)").pack()
        self.AtrPulseWidthInput = Entry(self.contentFrame)
        self.AtrPulseWidthInput.pack()
        # call the write fuctions stored in the parameters.py module
        self.write = Button(
            self.optionsFrame,
            text="Save Parameters",
            command=lambda: parameters.
            writeAOO(self.LRLInput.get(), self.URLInput.get(),
                     self.AtrApmlitudeInput.get(), self.AtrPulseWidthInput.get(
                     ))).pack()  # Saves the parameters to the master file
        # Other menu buttons
        self.back = Button(self.optionsFrame,
                           text="Back To Main Screen",
                           command=lambda: self.mainScreen()).pack()
        self.textbutton = Button(self.optionsFrame,
                                 text="Turn TxRx ON",
                                 command=lambda: readtosend.readparameters(1),
                                 activebackground="red").pack()
        # self.textbutton2=Button(self.optionsFrame, text="Turn TxRx OFF", command = lambda: self.colorTxRx(0)).pack(side=RIGHT) #OFF button
        # self.addTxRxDisplay() # add the txrx setup
        self.showEgram = Button(self.optionsFrame,
                                text="Show Egram",
                                command=lambda: egram.main()).pack()
Exemplo n.º 4
0
    def DOOR(self):
        self.removeContent()
        self.DOORcontent = Label(self.contentFrame,
                                 text="DOOR Programmable Variables").pack()

        # programmable parameters inputs
        self.LRLLabel = Label(self.contentFrame,
                              text="Lower Rate Limit (BPM)").pack()
        self.LRLInput = Entry(self.contentFrame)
        self.LRLInput.pack()
        self.URLLabel = Label(self.contentFrame,
                              text="Upper Rate Limit (BPM)").pack()
        self.URLInput = Entry(self.contentFrame)
        self.URLInput.pack()
        self.MaxSensorRateLabel = Label(
            self.contentFrame, text="Maximum Sensor Rate (BPM)").pack()
        self.MaxSensorRateInput = Entry(self.contentFrame)
        self.MaxSensorRateInput.pack()
        self.FixedAVDelayLabel = Label(self.contentFrame,
                                       text="Fixed AV Delay (V)").pack()
        self.FixedAVDelayInput = Entry(self.contentFrame)
        self.FixedAVDelayInput.pack()
        self.AtrAmplitudeLabel = Label(self.contentFrame,
                                       text="Atrial Amplitude (V)").pack()
        self.AtrAmplitudeInput = Entry(self.contentFrame)
        self.AtrAmplitudeInput.pack()
        self.AtrPulseWidthLabel = Label(self.contentFrame,
                                        text="Atrial Pulse Width (ms)").pack()
        self.AtrPulseWidthInput = Entry(self.contentFrame)
        self.AtrPulseWidthInput.pack()
        self.VentAmplitudeLabel = Label(
            self.contentFrame, text="Ventricular Amplitude (V)").pack()
        self.VentAmplitudeInput = Entry(self.contentFrame)
        self.VentAmplitudeInput.pack()
        self.VentPulseWidthLabel = Label(
            self.contentFrame, text="Ventricular Pulse Width (ms)").pack()
        self.VentPulseWidthInput = Entry(self.contentFrame)
        self.VentPulseWidthInput.pack()
        self.ActivityThresholdLabel = Label(self.contentFrame,
                                            text="Activity Threshold ").pack()
        self.ATI = StringVar(self.contentFrame)
        self.ATI.set("Medium")  #Default
        self.ActivityThresholdInput = OptionMenu(self.contentFrame, self.ATI,
                                                 "High", "Medium", "Low")
        self.ActivityThresholdInput.pack()
        self.ReactionTimeLabel = Label(self.contentFrame,
                                       text="Reaction Time (ms)").pack()
        self.ReactionTimeInput = Entry(self.contentFrame)
        self.ReactionTimeInput.pack()
        self.ResponseFactorLabel = Label(self.contentFrame,
                                         text="Response Factor").pack()
        self.ResponseFactorInput = Entry(self.contentFrame)
        self.ResponseFactorInput.pack()
        self.RecoveryTimeLabel = Label(self.contentFrame,
                                       text="Recovery Time (min)").pack()
        self.RecoveryTimeInput = Entry(self.contentFrame)
        self.RecoveryTimeInput.pack()

        #save parameters button - will have to be updated
        self.write = Button(
            self.optionsFrame,
            text="Save Parameters",
            command=lambda: parameters.writeDOOR(
                self.LRLInput.get(), self.URLInput.get(),
                self.MaxSensorRateInput.get(), self.FixedAVDelayInput.get(),
                self.AtrAmplitudeInput.get(), self.AtrPulseWidthInput.get(),
                self.VentAmplitudeInput.get(), self.VentPulseWidthInput.get(),
                self.ATI.get(), self.ReactionTimeInput.get(),
                self.ResponseFactorInput.get(), self.RecoveryTimeInput.get()
            )).pack()  # Saves the parameters to the master file

        self.back = Button(self.optionsFrame,
                           text="Back To Main Screen",
                           command=lambda: self.mainScreen()).pack()
        self.textbutton = Button(self.optionsFrame,
                                 text="Turn TxRx ON",
                                 command=lambda: readtosend.readparameters(10),
                                 activebackground="red").pack()
        # self.textbutton2=Button(self.optionsFrame, text="Turn TxRx OFF", command = lambda: self.colorTxRx(0)).pack(side=RIGHT)
        # self.addTxRxDisplay() # add the txrx setup
        self.showEgram = Button(self.optionsFrame,
                                text="Show Egram",
                                command=lambda: egram.main()).pack()
Exemplo n.º 5
0
    def VVIR(self):
        self.removeContent()
        self.VIIRcontent = Label(self.contentFrame,
                                 text="VVIR Programmable Variables").pack()

        # programmable parameters inputs
        self.LRLLabel = Label(self.contentFrame,
                              text="Lower Rate Limit (BPM)").pack()
        self.LRLInput = Entry(self.contentFrame)
        self.LRLInput.pack()
        self.URLLabel = Label(self.contentFrame,
                              text="Upper Rate Limit (BPM)").pack()
        self.URLInput = Entry(self.contentFrame)
        self.URLInput.pack()
        self.MaxSensorRateLabel = Label(
            self.contentFrame, text="Maximum Sensor Rate (BPM)").pack()
        self.MaxSensorRateInput = Entry(self.contentFrame)
        self.MaxSensorRateInput.pack()
        self.VentAmplitudeLabel = Label(
            self.contentFrame, text="Ventricular Amplitude (V)").pack()
        self.VentAmplitudeInput = Entry(self.contentFrame)
        self.VentAmplitudeInput.pack()
        self.VentPulseWidthLabel = Label(
            self.contentFrame, text="Ventricular Pulse Width (ms)").pack()
        self.VentPulseWidthInput = Entry(self.contentFrame)
        self.VentPulseWidthInput.pack()
        self.VRP = Label(self.contentFrame,
                         text="Ventricular Refractory Period (ms)").pack()
        self.VRPInput = Entry(self.contentFrame)
        self.VRPInput.pack()
        self.VentSensitivitiyLabel = Label(
            self.contentFrame, text="Ventricular Sensitivity (V)").pack()
        self.VentSensitivityInput = Entry(self.contentFrame)
        self.VentSensitivityInput.pack()
        # self.HysteresisLabel = Label(self.contentFrame, text="Hysteresis").pack()
        # self.HysteresisInput = Entry(self.contentFrame)
        # self.HysteresisInput.pack()
        self.RateSmoothingLabel = Label(self.contentFrame,
                                        text="Rate Smoothing (%)").pack()
        self.RS = StringVar(self.contentFrame)
        self.RS.set("OFF")  #Default
        self.RateSmoothingInput = OptionMenu(self.contentFrame, self.RS, "OFF",
                                             "3", "6", "9", "12", "15", "18",
                                             "21", "25")
        self.RateSmoothingInput.pack()
        self.ActivityThresholdLabel = Label(self.contentFrame,
                                            text="Activity Threshold").pack()
        self.ATI = StringVar(self.contentFrame)
        self.ATI.set("Medium")  #Default
        self.ActivityThresholdInput = OptionMenu(self.contentFrame, self.ATI,
                                                 "High", "Medium", "Low")
        self.ActivityThresholdInput.pack()
        self.ReactionTimeLabel = Label(self.contentFrame,
                                       text="Reaction Time (ms)").pack()
        self.ReactionTimeInput = Entry(self.contentFrame)
        self.ReactionTimeInput.pack()
        self.ResponseFactorLabel = Label(self.contentFrame,
                                         text="Response Factor").pack()
        self.ResponseFactorInput = Entry(self.contentFrame)
        self.ResponseFactorInput.pack()
        self.RecoveryTimeLabel = Label(self.contentFrame,
                                       text="Recovery Time (min)").pack()
        self.RecoveryTimeInput = Entry(self.contentFrame)
        self.RecoveryTimeInput.pack()

        # write inputs to file
        self.write = Button(
            self.optionsFrame,
            text="Save Parameters",
            command=lambda: parameters.writeVVIR(
                self.LRLInput.get(), self.URLInput.get(),
                self.MaxSensorRateInput.get(), self.VentAmplitudeInput.get(),
                self.VentPulseWidthInput.get(), self.VRPInput.get(),
                self.VentSensitivityInput.get(), self.RS.get(), self.ATI.get(),
                self.ReactionTimeInput.get(), self.ResponseFactorInput.get(),
                self.RecoveryTimeInput.get())).pack(
                )  # Saves the parameters to the master file

        self.back = Button(self.optionsFrame,
                           text="Back To Main Screen",
                           command=lambda: self.mainScreen()).pack()
        self.textbutton = Button(self.optionsFrame,
                                 text="Turn TxRx ON",
                                 command=lambda: readtosend.readparameters(9),
                                 activebackground="red").pack()
        # self.textbutton2=Button(self.optionsFrame, text="Turn TxRx OFF", command = lambda: self.colorTxRx(0)).pack(side=RIGHT)
        # self.addTxRxDisplay() # add the txrx setup
        self.showEgram = Button(self.optionsFrame,
                                text="Show Egram",
                                command=lambda: egram.main()).pack()
Exemplo n.º 6
0
    def AOOR(self):
        self.removeContent()
        self.AOORcontent = Label(self.contentFrame,
                                 text="AOOR Programmable Variables").pack()

        #programmable parameters inputs
        self.LRLLabel = Label(self.contentFrame,
                              text="Lower Rate Limit (BPM)").pack()
        self.LRLInput = Entry(self.contentFrame)
        self.LRLInput.pack()
        self.URLLabel = Label(self.contentFrame,
                              text="Upper Rate Limit (BPM)").pack()
        self.URLInput = Entry(self.contentFrame)
        self.URLInput.pack()
        self.MaxSensorRateLabel = Label(
            self.contentFrame, text="Maximum Sensor Rate (BPM)").pack()
        self.MaxSensorRateInput = Entry(self.contentFrame)
        self.MaxSensorRateInput.pack()
        self.AtrAmplitudeLabel = Label(self.contentFrame,
                                       text="Atrial Amplitude (V)").pack()
        self.AtrAmplitudeInput = Entry(self.contentFrame)
        self.AtrAmplitudeInput.pack()
        self.AtrPulseWidthLabel = Label(self.contentFrame,
                                        text="Atrial Pulse Width (ms)").pack()
        self.AtrPulseWidthInput = Entry(self.contentFrame)
        self.AtrPulseWidthInput.pack()
        self.ActivityThresholdLabel = Label(self.contentFrame,
                                            text="Activity Threshold").pack()
        self.ATI = StringVar(self.contentFrame)  #dummy definition
        self.ATI.set("Medium")  #Default
        self.ActivityThresholdInput = OptionMenu(
            self.contentFrame, self.ATI, "High", "Medium", "Low"
        )  #These dropdowns might come back around to f**k me in serial communication
        self.ActivityThresholdInput.pack()
        self.ReactionTimeLabel = Label(self.contentFrame,
                                       text="Reaction Time (ms)").pack()
        self.ReactionTimeInput = Entry(self.contentFrame)
        self.ReactionTimeInput.pack()
        self.ResponseFactorLabel = Label(self.contentFrame,
                                         text="Response Factor").pack()
        self.ResponseFactorInput = Entry(self.contentFrame)
        self.ResponseFactorInput.pack()
        self.RecoveryTimeLabel = Label(self.contentFrame,
                                       text="Recovery Time (min)").pack()
        self.RecoveryTimeInput = Entry(self.contentFrame)
        self.RecoveryTimeInput.pack()

        # call the write fuctions stored in the parameters.py module
        self.write = Button(
            self.optionsFrame,
            text="Save Parameters",
            command=lambda: parameters.writeAOOR(
                self.LRLInput.get(), self.URLInput.get(),
                self.MaxSensorRateInput.get(), self.AtrAmplitudeInput.get(),
                self.AtrPulseWidthInput.get(), self.ATI.get(),
                self.ReactionTimeInput.get(), self.ResponseFactorInput.get(),
                self.RecoveryTimeInput.get())).pack(
                )  # Saves the parameters to the master file

        # Other menu buttons
        self.back = Button(self.optionsFrame,
                           text="Back To Main Screen",
                           command=lambda: self.mainScreen()).pack()
        self.textbutton = Button(self.optionsFrame,
                                 text="Turn TxRx ON",
                                 command=lambda: readtosend.readparameters(6),
                                 activebackground="red").pack()
        # self.textbutton2=Button(self.optionsFrame, text="Turn TxRx OFF", command = lambda: self.colorTxRx(0)).pack(side=RIGHT)
        # self.addTxRxDisplay() # add the txrx setup
        self.showEgram = Button(self.optionsFrame,
                                text="Show Egram",
                                command=lambda: egram.main()).pack()