Exemplo n.º 1
0
    def __init__(self, master, devman):

        self.master = master
        self.dm = devman
        self.id = 'spec'
        self.header = 'Wavelength (nm)\tCh-1\tCh-2'
        self.extension = 'txt'

        # Pre-load the batch, witout creating any interface
        self.batch = Batch(self.master, self.dm, fileheader=self.header)

        # Create the main variables of the class
        self.create_variables()

        # Create the interface
        self.create_interface()
        self.plot_format = {'ratios' : (3, 1),
                            'xlabel' : 'Wavelength (nm)',
                            'Ch1_ylabel' : 'Ch-1',
                            'Ch2_ylabel' : 'Ch-2',
                            'Ch1_scale' : 'linear',
                            'Ch2_scale' : 'linear'}

        # We load the dummy devices by default
        self.fill_devices()
Exemplo n.º 2
0
    def __init__(self, master, devman, in_batch=False):
        self.master = master
        self.dm = devman
        self.id = 'CV'

        # Create the main variables of the class
        self.in_batch = in_batch
        self.create_variables()

        self.plot_format = {'ratios': (1, 1),
                            'xlabel': 'Frequency (Hz)',
                            'x_scale' : 'log',
                            'Ch1_ylabel': '|Z| (Ohm)',
                            'Ch2_ylabel': 'Tz (deg)',
                            'Ch1_scale': 'log',
                            'Ch2_scale': 'linear'}

        self.header = ''
        self.header.encode('utf-8')
        self.extension = 'txt'
        self.batch = Batch(self.master, self.dm, fileheader=self.header) ## Dummy mode

        # Create the interface
        self.create_interface()

        # We load the dummy devices by default
        self.fill_devices()
Exemplo n.º 3
0
    def __init__(self, master, devman, in_batch=False):

        self.master = master
        self.dm = devman
        self.id = 'iv'

        # Create the main variables of the class
        self.in_batch = in_batch
        self.create_variables()

        # Pre-load the batch, witout creating any interface
        self.header = 'Voltage (V)\tAbs(Current) (A)\tCurrent (A)'
        self.extension = 'iv'
        self.batch = Batch(self.master, self.dm, fileheader=self.header)

        # Create the interface
        self.create_interface()
        self.plot_format = {'ratios': (1, 1),
                            'xlabel': 'Voltage (V)',
                            'Ch1_ylabel': 'Abs(Current) (A)',
                            'Ch2_ylabel': 'Current (A)',
                            'Ch1_scale': 'log',
                            'Ch2_scale': 'linear'}

        # We load the dummy devices by default
        self.fill_devices()
Exemplo n.º 4
0
    def __init__(self, master, devman):

        self.master = master
        self.dm = devman
        self.id = 'PR'

        # Create the main variables of the class
        self.create_variables()

        self.plot_format = {
            'ratios': (1, 1),
            'xlabel': 'Wavelength (nm)',
            'x_scale': 'linear',
            'Ch1_ylabel': 'Xsignal/Rbaseline',
            'Ch2_ylabel': 'Rbaseline',
            'Ch1_scale': 'linear',
            'Ch2_scale': 'linear'
        }
        self.header = ''
        self.header.encode('utf-8')
        self.extension = 'txt'

        # Pre-load the batch, witout creating any interface
        self.batch = Batch(self.master, self.dm, fileheader=self.header)

        # Create the interface
        self.create_interface()

        # We load the dummy devices by default
        self.fill_devices()
Exemplo n.º 5
0
    def new_batch(self, batch_mode):
        """ Shows current batch window or, if a different batch is chosen, destroys the old one and creates a new one
        for the new batch mpde

        :param batch_mode: the selected type of batch
        :return: None
        """
        if self.batch.mode == batch_mode:
            self.batch.show()
        else:
            self.batch.quit()
            self.batch = Batch(self.master, self.dm, mode=batch_mode)