本文整理汇总了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
示例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)
示例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)
示例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()
示例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()
示例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)
示例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()
示例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