Beispiel #1
0
    def initialise_GUI(self):
        # Create the dds channel
        dds_prop = {}
        dds_prop['channel 0'] = {}  #HP signal generators only have one output
        for subchnl in ['freq', 'amp']:
            dds_prop['channel 0'][subchnl] = {
                'base_unit': self.base_units[subchnl],
                'min': self.base_min[subchnl],
                'max': self.base_max[subchnl],
                'step': self.base_step[subchnl],
                'decimals': self.base_decimals[subchnl]
            }

        # Create the output objects
        self.create_dds_outputs(dds_prop)
        # Create widgets for output objects
        dds_widgets, ao_widgets, do_widgets = self.auto_create_widgets()
        # and auto place the widgets in the UI
        self.auto_place_widgets(("Frequency Output", dds_widgets))

        # call VISATab.initialise to create STB widget
        VISATab.initialise_GUI(self)

        # Set the capabilities of this device
        self.supports_remote_value_check(True)
        self.supports_smart_programming(True)
        self.statemachine_timeout_add(5000, self.status_monitor)
Beispiel #2
0
    def initialise_GUI(self):
        # Call the VISATab parent to initialise the STB ui and set the worker
        VISATab.initialise_GUI(self)

        # Set the capabilities of this device
        self.supports_remote_value_check(False)
        self.supports_smart_programming(False)
        self.statemachine_timeout_add(5000, self.status_monitor)
Beispiel #3
0
    def initialise_GUI(self):

        # use AO widgets to mimick functionality
        ao_prop = {
            'tau': {
                'base_unit': 's',
                'min': 1e-6,
                'max': 30e3,
                'step': 1,
                'decimals': 6
            },
            'sens': {
                'base_unit': 'V',
                'min': 1e-9,
                'max': 1,
                'step': 1e-3,
                'decimals': 9
            },
            'phase': {
                'base_unit': 'deg',
                'min': -180,
                'max': 180,
                'step': 1,
                'decimals': 6
            }
        }

        self.create_analog_outputs(ao_prop)
        ao_widgets = self.create_analog_widgets(ao_prop)
        self.auto_place_widgets(('Settings', ao_widgets))

        # call VISATab.initialise to create SR865 widget
        VISATab.initialise_GUI(self)

        # Set the capabilities of this device
        self.supports_remote_value_check(True)
        self.supports_smart_programming(True)
        self.statemachine_timeout_add(5000, self.status_monitor)
Beispiel #4
0
    def initialise_GUI(self):
        # configure outputs based on output limiting type
        properties = self.settings['connection_table'].find_by_name(self.device_name).properties

        if properties['limited'] == 'volt':
            base_units = 'V'
            base_min = properties['volt_limits'][0]
            base_max = properties['volt_limits'][1]
        else:
            base_units = 'A'
            base_min = properties['current_limits'][0]
            base_max = properties['current_limits'][1]                                
        
        AO_prop = {} 
        for i in properties['allowed_outputs']:
            AO_prop['channel %d'%i] = {
                    'base_unit':base_units,
                    'min':base_min,
                    'max':base_max,
                    'step':1,
                    'decimals':5
            }
       
        # Create the output objects    
        self.create_analog_outputs(AO_prop)        
        # Create widgets for output objects
        dds_widgets,ao_widgets,do_widgets = self.auto_create_widgets()
        # and auto place the widgets in the UI
        self.auto_place_widgets(("DC Outputs",ao_widgets))
        
        # call VISATab.initialise to create STB widget
        VISATab.initialise_GUI(self)

        # Set the capabilities of this device
        self.supports_remote_value_check(True)
        self.supports_smart_programming(True) 
        self.statemachine_timeout_add(10000, self.status_monitor)       
Beispiel #5
0
 def __init__(self, *args, **kwargs):
     # set the worker
     self.device_worker_class = 'naqslab_devices.SR865.blacs_worker.SR865Worker'
     VISATab.__init__(self, *args, **kwargs)
Beispiel #6
0
 def __init__(self,*args,**kwargs):
     self.device_worker_class = 'naqslab_devices.KeysightDCSupply.blacs_worker.KeysightDCSupplyWorker'
     VISATab.__init__(self,*args,**kwargs)
Beispiel #7
0
 def __init__(self, *args, **kwargs):
     if not hasattr(self, 'device_worker_class'):
         self.device_worker_class = 'naqslab_devices.TektronixTDS.blacs_worker.TDS_ScopeWorker'
     VISATab.__init__(self, *args, **kwargs)
Beispiel #8
0
 def __init__(self,*args,**kwargs):
     if not hasattr(self,'device_worker_class'):
         self.device_worker_class = 'naqslab_devices.KeysightXSeries.blacs_worker.KeysightXScopeWorker'
     VISATab.__init__(self,*args,**kwargs)
Beispiel #9
0
 def __init__(self, *args, **kwargs):
     if not hasattr(self, 'device_worker_class'):
         #raise LabscriptError('%s __init__ method not overridden!'%self)
         self.device_worker_class = 'naqslab_devices.SignalGenerator.blacs_worker.SignalGeneratorWorker'
     VISATab.__init__(self, *args, **kwargs)