Script execution

This commit is contained in:
x03daop
2016-08-05 14:01:53 +02:00
parent 5d722e8863
commit 1434838df3

View File

@@ -12,8 +12,8 @@ tic = time.time()
LATENCY = 0.0
VECTOR = [ 630.0]
for nn in range(63):
VECTOR.append(VECTOR[-1]+4)
#for nn in range(63):
# VECTOR.append(VECTOR[-1]+4)
initial_energy_range = [[87.2, 95.5, 0.1],
[95.0, 105.0, 0.5]]
@@ -98,12 +98,12 @@ set_adc_averaging()
set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
try:
for ll in range(len(azi_range)):
ManipulatorPhi.move(azi_range[ll])
for nn in range(len(angle_range)):
ManipulatorTheta.move(angle_range[nn])
print 'current theta is ', ManipulatorTheta.take(), ' and current azimuth is ' , ManipulatorPhi.take()
#vscan(Eph, SENSORS, VECTOR, True, LATENCY,False, before_read=wait_beam, after_read = after_readout)
# for ll in range(len(azi_range)):
# ManipulatorPhi.move(azi_range[ll])
# for nn in range(len(angle_range)):
# ManipulatorTheta.move(angle_range[nn])
# print 'current theta is ', ManipulatorTheta.take(), ' and current azimuth is ' , ManipulatorPhi.take()
vscan(Eph, SENSORS, VECTOR, True, LATENCY,False, before_read=wait_beam, after_read = after_readout)
finally:
if ENDSCAN:
after_scan()