コード例 #1
0
    def _start_running(self):
        if self._counters.get_is_running():
            self._counter_was_running = True
            if self._linescan.get_scan_value() != 'counter_process':
                self._counters.set_is_running(False)

        # first prepare params such that the underlying scan instruments
        # can understand
        self._y = linspace(self._ystart, self._ystop, self._ysteps)
        self._x = linspace(self._xstart, self._xstop, self._xsteps)
        self._linescan_starts = []
        self._linescan_stops = []
        for i, yval in enumerate(self._y):
            self._linescan_starts.append([self._xstart, yval])
            self._linescan_stops.append([self._xstop, yval])
        self._linescan_starts = array(self._linescan_starts)
        self._linescan_stops = array(self._linescan_stops)
        self._linescan_steps = self._xsteps

        # now start inherited stuff
        scan._start_running(self)
コード例 #2
0
    def _start_running(self):

        if self._counters.get_is_running():
            self._counter_was_running = True
            if self._linescan.get_scan_value() != 'resonant':
                self._counters.set_is_running(False)

        # first prepare params such that the underlying scan instruments
        # can understand
        self._y = linspace(self._ystart, self._ystop, self._ysteps)
        self._x = linspace(self._xstart, self._xstop, self._xsteps)
        self._linescan_starts = []
        self._linescan_stops = []
        for i, yval in enumerate(self._y):
            self._linescan_starts.append([self._xstart, yval])
            self._linescan_stops.append([self._xstop, yval])
        self._linescan_starts = array(self._linescan_starts)
        self._linescan_stops = array(self._linescan_stops)
        self._linescan_steps = self._xsteps

        # now start inherited stuff
        scan._start_running(self)
コード例 #3
0
    def _start_running(self):

        # make sure the counter is off, when not in resonant counting mode
        if self._counters.get_is_running():
            self._counter_was_running = True
            if self.get_linescan_value() != 'resonant':
                self._counters.set_is_running(False)

        # first prepare params such that the underlying scan instruments
        # can understand
        self._y = linspace(self._ystart, self._ystop, self._ysteps)
        self._x = linspace(self._xstart, self._xstop, self._xsteps)
        self._linescan_starts = []
        self._linescan_stops = []
        for i, yval in enumerate(self._y):
            self._linescan_starts.append([self._xstart, yval])
            self._linescan_stops.append([self._xstop, yval])
        self._linescan_starts = array(self._linescan_starts)
        self._linescan_stops = array(self._linescan_stops)
        self._linescan_steps = self._xsteps

        # now start inherited stuff
        scan._start_running(self)