当前位置: 首页>>代码示例>>Python>>正文


Python CyclopeanInstrument._start_running方法代码示例

本文整理汇总了Python中cyclopean_instrument.CyclopeanInstrument._start_running方法的典型用法代码示例。如果您正苦于以下问题:Python CyclopeanInstrument._start_running方法的具体用法?Python CyclopeanInstrument._start_running怎么用?Python CyclopeanInstrument._start_running使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cyclopean_instrument.CyclopeanInstrument的用法示例。


在下文中一共展示了CyclopeanInstrument._start_running方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: _start_running

# 需要导入模块: from cyclopean_instrument import CyclopeanInstrument [as 别名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import _start_running [as 别名]
 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
开发者ID:AdriaanRol,项目名称:measurement,代码行数:9,代码来源:ADwin_scan2d.py

示例2: _start_running

# 需要导入模块: from cyclopean_instrument import CyclopeanInstrument [as 别名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import _start_running [as 别名]
 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)
开发者ID:AdriaanRol,项目名称:measurement,代码行数:9,代码来源:ADwin_counter.py

示例3: _start_running

# 需要导入模块: from cyclopean_instrument import CyclopeanInstrument [as 别名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import _start_running [as 别名]
 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)
开发者ID:AdriaanRol,项目名称:measurement,代码行数:9,代码来源:counters_via_adwin.py

示例4: _start_running

# 需要导入模块: from cyclopean_instrument import CyclopeanInstrument [as 别名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import _start_running [as 别名]
 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()
开发者ID:AdriaanRol,项目名称:measurement,代码行数:10,代码来源:optimize1d_counts.py

示例5: _start_running

# 需要导入模块: from cyclopean_instrument import CyclopeanInstrument [as 别名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import _start_running [as 别名]
    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()
开发者ID:AdriaanRol,项目名称:measurement,代码行数:14,代码来源:scan2d_demo.py

示例6: _start_running

# 需要导入模块: from cyclopean_instrument import CyclopeanInstrument [as 别名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import _start_running [as 别名]
    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)
开发者ID:AdriaanRol,项目名称:measurement,代码行数:18,代码来源:linescan.py

示例7: _start_running

# 需要导入模块: from cyclopean_instrument import CyclopeanInstrument [as 别名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import _start_running [as 别名]
    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()
开发者ID:AdriaanRol,项目名称:measurement,代码行数:48,代码来源:scan.py

示例8: _stop_running

# 需要导入模块: from cyclopean_instrument import CyclopeanInstrument [as 别名]
# 或者: from cyclopean_instrument.CyclopeanInstrument import _start_running [as 别名]
    def _stop_running(self):
        CyclopeanInstrument._start_running(self)

        return
开发者ID:AdriaanRol,项目名称:measurement,代码行数:6,代码来源:cyclopean_counts_v2.py


注:本文中的cyclopean_instrument.CyclopeanInstrument._start_running方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。