예제 #1
0
 def _start_running(self):
     #print 'counters started running'
     CyclopeanInstrument._start_running(self)
     self._ins_adwin.start_counter(
         set_integration_time=self._integration_time,
         set_avg_periods=self._avg_periods,
         set_single_run=0)
 def _start_running(self):
     CyclopeanInstrument._start_running(self)
     self._counter = self._ins_count.get_is_running()
     self._ins_count.set_is_running(False)
     self.setup_data()
     self._current_line = 0
     self._last_line = 0
예제 #3
0
 def _start_running(self):
     CyclopeanInstrument._start_running(self)
     self._counter = self._ins_count.get_is_running()
     self._ins_count.set_is_running(False)
     self.setup_data()
     self._current_line = 0
     self._last_line = 0
예제 #4
0
 def _start_running(self):
     CyclopeanInstrument._start_running(self)
     self._ins_ADwin.Stop_Process(4)
     self._ins_ADwin.Load('D:\\Lucio\\AdWin codes\\ADwin_Gold_II\\simple_counting.tb4')
     self._ins_ADwin.Set_Par(24,self._integration_time)
     time.sleep(0.001)
     self._ins_ADwin.Start_Process(4)
예제 #5
0
 def _start_running(self):
     #print 'counters started running'
     CyclopeanInstrument._start_running(self)
     self._ins_adwin.start_counter(
             set_integration_time=self._integration_time,
             set_avg_periods=self._avg_periods,
             set_single_run=0)
예제 #6
0
 def _start_running(self):
     CyclopeanInstrument._start_running(self)
     self._prepare()
     self._linescan.set_is_running(True)
     qt.msleep(0.1)
     while self._linescan.get_is_running():
         qt.msleep(0.1)
     return self._process_fit()
예제 #7
0
 def _start_running(self):
     CyclopeanInstrument._start_running(self)
     self._prepare()
     self._linescan.set_is_running(True)
     qt.msleep(0.1)
     while self._linescan.get_is_running():
         qt.msleep(0.1)
     return self._process_fit()
예제 #8
0
 def _start_running(self):
     CyclopeanInstrument._start_running(self)
     self._ins_ADwin.Stop_Process(4)
     self._ins_ADwin.Load(
         'D:\\Lucio\\AdWin codes\\ADwin_Gold_II\\simple_counting.tb4')
     self._ins_ADwin.Set_Par(24, self._integration_time)
     time.sleep(0.001)
     self._ins_ADwin.Start_Process(4)
    def _start_running(self):
        CyclopeanInstrument._start_running(self)

        # make sure the counter is off.
        if self._counters.get_is_running():
            self._counter_was_running = True
            self._counters.set_is_running(False)

        self.setup_data()
        self._current_line = 0
        self._last_line = 0
        self._next_line()
예제 #10
0
    def _start_running(self):
        CyclopeanInstrument._start_running(self)

        # make sure the counter is off.
        if self._counters.get_is_running():
            self._counter_was_running = True
            self._counters.set_is_running(False)
        
        self.setup_data()
        self._current_line = 0
        self._last_line = 0
        self._next_line()
예제 #11
0
    def _start_running(self):
        CyclopeanInstrument._start_running(self)

        # determine points of the line
        self._points = zeros((len(self._dimensions), self._steps))

        for i,d in enumerate(self._dimensions):

	    self._points[i,:] = linspace(self._starts[i], self._stops[i],self._steps)


        # start the linescan
        if not self._mos.linescan_start(self._dimensions, self._starts, 
                self._stops, self._steps, self._px_time, 
                value=self._scan_value):
            self.set_is_running(False)
예제 #12
0
    def _start_running(self):
        CyclopeanInstrument._start_running(self)

        # initalize data field and set current status (i.e, empty)
        # general feature for scan: data for points
        #
        # create a field of correct shape; each line, in whatever form
        # specified via starts and stops gets their own points
        pts_shape = list(self._linescan_starts.shape)
        pts_shape.append(self._linescan_steps)
        pts = zeros(tuple(pts_shape))

        dim_lines = zeros(self._linescan_starts.shape)
        dim_lines_flat = dim_lines.flat

        # index gets incremented after the item is being read out, so we
        # start populating before the first readout and stop before the
        # last one
        ndx = dim_lines_flat.coords
        pts[ndx] = linspace(self._linescan_starts[ndx],
                            self._linescan_stops[ndx], self._linescan_steps)

        # line index of course without the dimensions in which we scan
        self._current_line = ndx[:-1]

        # print self._current_line

        for i in dim_lines_flat:
            i = linspace(self._linescan_starts[ndx], self._linescan_stops[ndx],
                         self._linescan_steps)

            if dim_lines_flat.index < dim_lines.size:
                ndx = dim_lines_flat.coords
                pts[ndx] = linspace(self._linescan_starts[ndx],
                                    self._linescan_stops[ndx],
                                    self._linescan_steps)

        self._data['points'] = pts

        # set up correct data field, to be implemented by user
        self._setup_data()

        # hook up linescanner changes
        self._linescan.connect('changed', self._linescan_update)

        # now start the actual scanning
        self._next_line()
예제 #13
0
    def _start_running(self):
        CyclopeanInstrument._start_running(self)

        # initalize data field and set current status (i.e, empty)
        # general feature for scan: data for points
        #
        # create a field of correct shape; each line, in whatever form
        # specified via starts and stops gets their own points
        pts_shape = list(self._linescan_starts.shape)
        pts_shape.append(self._linescan_steps)
        pts = zeros(tuple(pts_shape))

        dim_lines = zeros(self._linescan_starts.shape)
        dim_lines_flat = dim_lines.flat
        
        # index gets incremented after the item is being read out, so we
        # start populating before the first readout and stop before the
        # last one
        ndx = dim_lines_flat.coords
        pts[ndx] = linspace(self._linescan_starts[ndx],
               self._linescan_stops[ndx], self._linescan_steps)

        # line index of course without the dimensions in which we scan
        self._current_line = ndx[:-1]

        # print self._current_line
        
        for i in dim_lines_flat:
            i = linspace(self._linescan_starts[ndx],
                self._linescan_stops[ndx], self._linescan_steps)
             
            if dim_lines_flat.index < dim_lines.size:
                ndx = dim_lines_flat.coords
                pts[ndx] = linspace(self._linescan_starts[ndx],
                       self._linescan_stops[ndx], self._linescan_steps)
        
        self._data['points'] = pts

        # set up correct data field, to be implemented by user
        self._setup_data()

        # hook up linescanner changes
        self._linescan.connect('changed', self._linescan_update)

        # now start the actual scanning
        self._next_line()
예제 #14
0
    def _start_running(self):
        CyclopeanInstrument._start_running(self)

        # determine points of the line
        self._points = zeros((len(self._dimensions), self._steps))

        for i, d in enumerate(self._dimensions):

            self._points[i, :] = linspace(self._starts[i], self._stops[i],
                                          self._steps)

        # start the linescan
        if not self._mos.linescan_start(self._dimensions,
                                        self._starts,
                                        self._stops,
                                        self._steps,
                                        self._px_time,
                                        value=self._scan_value):
            self.set_is_running(False)
    def _start_running(self):
        CyclopeanInstrument._start_running(self)
        # determine points of the line in x/y space
        self._ins_ADwin.Start_Process(2)
        while self._ins_ADwin.Process_Status(2) > 0:
            #            qt.msleep(0.1)
            time.sleep(0.01)

        channel = self._ins_ADwin_count.get_channel()

        if channel < 5:
            self._values = self._ins_ADwin.Get_Data_Long(
                channel, 1, self._nr_of_points)
        elif channel == 5:
            self._values = numpy.add(
                self._ins_ADwin.Get_Data_Long(1, 1, self._nr_of_points),
                self._ins_ADwin.Get_Data_Long(2, 1, self._nr_of_points))

        self.get_values()

        self.do_set_is_running(False)
예제 #16
0
    def _stop_running(self):
        CyclopeanInstrument._start_running(self)

        return
예제 #17
0
 def _start_running(self):
     CyclopeanInstrument._start_running(self)