本文整理匯總了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