Example #1
0
    def set_value_clicked(self, widget, data=None):
        key = self.my_widgets['iotable'].get_choice("Set", 'o')
        if (key == "<empty>"): return

        value = float(self.my_widgets['setentry'].get_text())
        worker.feed('''f_set['%s'](%f)'''%(key, value))
        return
Example #2
0
    def set_value_clicked(self, widget, data=None):
        key = self.my_widgets['iotable'].get_choice("Set", 'o')
        if (key == "<empty>"): return

        value = float(self.my_widgets['setentry'].get_text())
        worker.feed('''f_set['%s'](%f)''' % (key, value))
        return
Example #3
0
    def run(self):
        worker.feed('''
try:
     latestdata = kernel_PIDlock(run_desc, gui_exports)
finally:
     gui_exports['on_finished']()
''')
        return
Example #4
0
    def run(self):
        worker.feed('''
try:
     latestdata = kernel_TimeDepScan(run_desc, gui_exports)
finally:
     gui_exports['on_finished']()
''')
        return
Example #5
0
    def run(self):
        worker.feed('''
try:
    execfile("''' + __main__.DAQ_HOME + '''/scripts/autoload.py")
finally:
     gui_exports['on_finished']()
''')
        return
Example #6
0
    def run(self):
        worker.feed('''
try:
    execfile("''' + __main__.DAQ_HOME + '''/scripts/autoload.py")
finally:
     gui_exports['on_finished']()
''')
        return
Example #7
0
    def run(self):
        worker.feed('execfile("%s/%s.py")'%(SCRIPT_DIR, self.active_script))
        
        worker.feed('''
try:
     RunScript(*script_args)
finally:
     gui_exports['on_finished']()
''')
        return
Example #8
0
    def run(self):
        worker.feed('execfile("%s/%s.py")' % (SCRIPT_DIR, self.active_script))

        worker.feed('''
try:
     RunScript(*script_args)
finally:
     gui_exports['on_finished']()
''')
        return
Example #9
0
    def run(self):
        worker.feed('''
try:
     database = kernel_1DScan(run_desc, gui_exports)

     (datapoints, validmask) = database.get_all_data_with_mask()
            
     for i in range(datapoints.shape[0]):
         if (validmask[i] != data.VALID):
             datapoints = datapoints[1:i]
             break
        
     fit  = linear_fit(datapoints[:,0:2])
                
     print "Obtained fit: y = %g + %g*x, with std dev %g and %g respectively"%(fit[0], fit[1], fit[2], fit[3])
            
finally:
     gui_exports['on_finished']()
''')
        return
Example #10
0
    def run(self):
        worker.feed(
            """
try:
     database = kernel_1DScan(run_desc, gui_exports)

     (datapoints, validmask) = database.get_all_data_with_mask()
            
     for i in range(datapoints.shape[0]):
         if (validmask[i] != data.VALID):
             datapoints = datapoints[1:i]
             break
        
     fit  = linear_fit(datapoints[:,0:2])
                
     print "Obtained fit: y = %g + %g*x, with std dev %g and %g respectively"%(fit[0], fit[1], fit[2], fit[3])
            
finally:
     gui_exports['on_finished']()
"""
        )
        return
Example #11
0
 def zeroall_value_clicked(self, widget, data=None):
     for key in self.open_io_set_streams.keys():
         if (('Magnet' in key) or ('ITC' in key)):
             continue
         worker.feed('''f_set['%s'](0.0)''' % (key))
     return
Example #12
0
 def zeroall_value_clicked(self, widget, data=None):
     for key in self.open_io_set_streams.keys():
         if (('Magnet' in key) or ('ITC' in key)):
             continue
         worker.feed('''f_set['%s'](0.0)'''%(key))
     return