Ejemplo n.º 1
0
    def __init__(self, *args):
        TNGPluginBase.__init__(self, TNGAO4U4IBindings, *args)

        self.setupUi(self)
        self.ao_4u_4i = self.device

        self.voltages = [
            SliderSpinSyncer(self.slider_voltage_ch0, self.spin_voltage_ch0,
                             self.value_changed),
            SliderSpinSyncer(self.slider_voltage_ch1, self.spin_voltage_ch1,
                             self.value_changed),
            SliderSpinSyncer(self.slider_voltage_ch2, self.spin_voltage_ch2,
                             self.value_changed),
            SliderSpinSyncer(self.slider_voltage_ch3, self.spin_voltage_ch3,
                             self.value_changed)
        ]

        self.currents = [
            SliderSpinSyncer(self.slider_current_ch0, self.spin_current_ch0,
                             self.value_changed),
            SliderSpinSyncer(self.slider_current_ch1, self.spin_current_ch1,
                             self.value_changed),
            SliderSpinSyncer(self.slider_current_ch2, self.spin_current_ch2,
                             self.value_changed),
            SliderSpinSyncer(self.slider_current_ch3, self.spin_current_ch3,
                             self.value_changed)
        ]
Ejemplo n.º 2
0
    def __init__(self, *args):
        TNGPluginBase.__init__(self, TNGHUBBindings, *args)

        self.setupUi(self)
        self.hub = self.device

        self.label.setText('Hello, i am TNG-HUB')
Ejemplo n.º 3
0
    def __init__(self, *args):
        TNGPluginBase.__init__(self, TNGDI8Bindings, *args)

        self.setupUi(self)
        self.di8 = self.device

        self.cbe_values = CallbackEmulator(self, self.di8.get_values, None,
                                           self.cb_values,
                                           self.increase_error_count)
Ejemplo n.º 4
0
    def __init__(self, *args):
        TNGPluginBase.__init__(self, TNGDO8Bindings, *args)

        self.setupUi(self)
        self.do8 = self.device

        self.checkboxes = [
            self.checkbox_ch0,
            self.checkbox_ch1,
            self.checkbox_ch2,
            self.checkbox_ch3,
            self.checkbox_ch4,
            self.checkbox_ch5,
            self.checkbox_ch6,
            self.checkbox_ch7,
        ]

        for checkbox in self.checkboxes:
            checkbox.toggled.connect(self.checkbox_toggled)
Ejemplo n.º 5
0
    def __init__(self, *args):
        TNGPluginBase.__init__(self, TNGAI4U4IBindings, *args)

        self.setupUi(self)
        self.ai_4u_4i = self.device

        self.voltages = [
            self.label_voltage_ch0,
            self.label_voltage_ch1,
            self.label_voltage_ch2,
            self.label_voltage_ch3,
        ]

        self.currents = [
            self.label_current_ch0,
            self.label_current_ch1,
            self.label_current_ch2,
            self.label_current_ch3,
        ]

        self.cbe_values = CallbackEmulator(self.ai_4u_4i.get_values, None, self.cb_values, self.increase_error_count)