NSLS-II / Bug-Reports

Unified issue-tracker for bugs in the data acquisition, management, and analysis software at NSLS-II
BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

FCCD trigger problem during RE(dscan(theta) #158

Open wen-hu opened 7 years ago

wen-hu commented 7 years ago

No response after starting dscan(theta). Last scan was good. It seems that FCCD cannot be triggered, see second message below. Also, on the FCCD image, writing data shows always, even when restart FCCD.

count_dark(2*60); count_light(1,30*60); count_dark(2*60)
Current fCCD config: 1800.0 images @ 1.00 Hz = 120.000 s

2017-02-01 21:52:05
******** Shutter closed. Collecting dark images for 120 seconds ********

Transient Scan ID: 73252 @ 2017/02/01 21:52:06
Persistent Unique Scan ID: '3e65fb51-1f58-4ef2-a26c-820462306176'
+-----------+------------+-------------------+
|   seq_num |       time | fccd_stats4_total |
+-----------+------------+-------------------+
|         1 | 21:54:08.1 |             81068 |
+-----------+------------+-------------------+
generator ct ['3e65fb'] (scan num: 73252)

Shutter opened.
Current fCCD config: 1800.0 images @ 1.00 Hz = 1800.000 s
Current fCCD config: 1800.0 images @ 1.00 Hz = 1800.000 s

2017-02-01 21:54:11
******** Collecting light images for 1800 seconds ********

Transient Scan ID: 73253 @ 2017/02/01 21:54:11
Persistent Unique Scan ID: '548ba833-2ac5-4981-94ce-ceb44120840a'
+-----------+------------+-------------------+
|   seq_num |       time | fccd_stats4_total |
+-----------+------------+-------------------+
|         1 | 22:24:14.0 |           5847603 |
+-----------+------------+-------------------+
generator ct ['548ba8'] (scan num: 73253)
Current fCCD config: 120.0 images @ 1.00 Hz = 120.000 s

2017-02-01 22:24:16
******** Shutter closed. Collecting dark images for 120 seconds ********

Transient Scan ID: 73254 @ 2017/02/01 22:24:17
Persistent Unique Scan ID: '8a07a943-57ab-4b9d-b38d-c83eeba2495f'
+-----------+------------+-------------------+
|   seq_num |       time | fccd_stats4_total |
+-----------+------------+-------------------+
|         1 | 22:26:19.6 |           1144788 |
+-----------+------------+-------------------+
generator ct ['8a07a9'] (scan num: 73254)

Shutter opened.
Current fCCD config: 1800.0 images @ 1.00 Hz = 1800.000 s

In [1246]: tardis.forward([0.36, 0.36, 0])
Out[1246]: PosCalcE6C(theta=76.69265822170696, omega=0.0, chi=0.0, phi=0.0, delta=150.10318350619116, gamma=6.5805611760013365)

In [1247]: gs.TABLE_COLS = ['fccd_stats4_total']; gs.PLOT_Y = 'fccd_stats4_total'

In [1248]: RE(dscan(theta,-4,4,40))
Transient Scan ID: 73255 @ 2017/02/01 22:34:06
Persistent Unique Scan ID: 'be0c72f6-d015-45c8-973c-4f82f0fa2a9b'
^CA 'deferred pause' has been requested. The RunEngine will pause at the next checkpoint. To pause immediately, hit Ctrl+C again in the next 10 seconds.
Deferred pause acknowledged. Continuing to checkpoint.
^C
^C^C
Your RunEngine is entering a paused state. These are your options for changing
the state of the RunEngine:

RE.resume()    Resume the plan.
RE.abort()     Perform cleanup, then kill plan. Mark exit_stats='aborted'.
RE.stop()      Perform cleanup, then kill plan. Mark exit_status='success'.
RE.halt()      Emergency Stop: Do not perform cleanup --- just stop.

Pausing...
Out[1248]: ['be0c72f6-d015-45c8-973c-4f82f0fa2a9b']

In [1249]: RE.abort()
Aborting: running cleanup and marking exit_status as 'abort'...

In [1250]: gs.DETS
Out[1250]: 
[EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Th}Mtr', name='theta', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu']),
 EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Del}Mtr', name='delta', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu']),
 EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Gam}Mtr', name='gamma', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu']),
 EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:X}Mtr', name='sx', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu']),
 EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Y}Mtr', name='say', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu']),
 EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Z}Mtr', name='saz', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu']),
 Cryoangle(prefix='', name='cryoangle', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint'], configuration_attrs=[], limits=None, egu=''),
 SamplePosVirtualMotor(prefix='XF:23ID1-ES{Dif-Ax:SY}', name='sy', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint'], configuration_attrs=[], limits=None, egu=''),
 SamplePosVirtualMotor(prefix='XF:23ID1-ES{Dif-Ax:SZ}', name='sz', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint'], configuration_attrs=[], limits=None, egu=''),
 Temperature(prefix='XF:23ID1-ES{TCtrl:1', name='temp', read_attrs=['a', 'b'], configuration_attrs=[]),
 EpicsSignal(read_pv='UT:SB1-Cu:1{}T:Spply_Ld-I', name='uw_temp', value=84.86007690429688, timestamp=1486006592.229844, tolerance=0.01, pv_kw={}, auto_monitor=False, string=False, write_pv='UT:SB1-Cu:1{}T:Spply_Ld-I', limits=False, put_complete=False),
 PGMEnergy(prefix='XF:23ID1-OP{Mono', name='pgm_en', parent='pgm', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint', 'stop_signal'], configuration_attrs=[], limits=None, egu=''),
 EPU1(prefix='XF:23ID-ID{EPU:1', name='epu1', read_attrs=['gap', 'phase'], configuration_attrs=[]),
 EPU2(prefix='XF:23ID-ID{EPU:2', name='epu2', read_attrs=['gap', 'phase'], configuration_attrs=[]),
 SlitsGapCenter(prefix='XF:23ID1-OP{Slt:1', name='slt1', read_attrs=['xg', 'xc', 'yg', 'yc'], configuration_attrs=[]),
 SlitsGapCenter(prefix='XF:23ID1-OP{Slt:2', name='slt2', read_attrs=['xg', 'xc', 'yg', 'yc'], configuration_attrs=[]),
 SlitsXY(prefix='XF:23ID1-OP{Slt:3', name='slt3', read_attrs=['x', 'y'], configuration_attrs=[]),
 Mirror(prefix='XF:23IDA-OP:1{Mir:1', name='m1a', read_attrs=['z', 'y', 'x', 'pit', 'yaw', 'rol'], configuration_attrs=[]),
 MotorMirror(prefix='XF:23ID1-OP{Mir:3', name='m3a', read_attrs=['x', 'pit', 'bdr'], configuration_attrs=[]),
 EpicsSignal(read_pv='XF:23ID1-OP{TCtrl:1-Chan:A}T-I', name='mono_tempa', value=302.754, timestamp=1486006591.29278, tolerance=0.001, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{TCtrl:1-Chan:A}T-I', limits=False, put_complete=False),
 EpicsSignal(read_pv='XF:23ID1-OP{TCtrl:1-Chan:B}T-I', name='mono_tempb', value=302.751, timestamp=1486006591.372742, tolerance=0.001, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{TCtrl:1-Chan:B}T-I', limits=False, put_complete=False),
 EpicsSignal(read_pv='XF:23ID1-OP{Mon-Grt:1}T-I', name='grt1_temp', value=31.400000000000002, timestamp=1486006592.957662, tolerance=0.1, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{Mon-Grt:1}T-I', limits=False, put_complete=False),
 EpicsSignal(read_pv='XF:23ID1-OP{Mon-Grt:2}T-I', name='grt2_temp', value=28.8, timestamp=1486006592.957664, tolerance=0.1, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{Mon-Grt:2}T-I', limits=False, put_complete=False),
 EpicsSignal(read_pv='XF:23ID-SR{}I-I', name='ring_curr', value=250.36935685456476, timestamp=1486006592.731042, tolerance=0.01, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID-SR{}I-I', limits=False, put_complete=False),
 Nanopositioner(prefix='XF:23ID1-ES{Dif:Lens', name='nanop', read_attrs=['tx', 'ty', 'tz', 'bx', 'by', 'bz'], configuration_attrs=[]),
 EpicsSignal(read_pv='XF:23ID1-BI{Diag:6-Cam:1}Stats1:Total_RBV', name='diag6_monitor', value=457825195.0, timestamp=1486006593.171787, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-BI{Diag:6-Cam:1}Stats1:Total_RBV', limits=False, put_complete=False),
 Tardis(prefix='', name='tardis', settle_time=0.0, timeout=None, egu='', limits=(0, 0), source='computed', read_attrs=['h', 'k', 'l', 'theta', 'omega', 'chi', 'phi', 'delta', 'gamma'], configuration_attrs=['UB', 'energy'], concurrent=True),
 PrototypeEpicsScaler(prefix='XF:23ID1-ES{Sclr:1}', name='sclr', read_attrs=['channels', 'time'], configuration_attrs=['preset_time', 'presets', 'gates', 'names', 'freq', 'auto_count_time', 'count_mode', 'delay', 'auto_count_delay', 'egu']),
 ProductionCamCustom(prefix='XF:23ID1-ES{FCCD}', name='fccd', read_attrs=['hdf5', 'acquire_time', 'plugin_num_images', 'stats1', 'stats2', 'stats3', 'stats4', 'stats5'], configuration_attrs=[])]
In [1270]: RE(ct(num=10))
subscribe: (None), ('all', <bluesky.callbacks.core.LiveTable object at 0x7fc4e6ce8080>), {}
subscribe: (None), ('all', <bluesky.callbacks.core.LivePlot object at 0x7fc4e6ce8048>), {}
stage: (EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Th}Mtr', name='theta', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])), (), {}
stage: (EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Del}Mtr', name='delta', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])), (), {}
stage: (EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Gam}Mtr', name='gamma', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])), (), {}
stage: (EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:X}Mtr', name='sx', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])), (), {}
stage: (EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Y}Mtr', name='say', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])), (), {}
stage: (EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Z}Mtr', name='saz', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])), (), {}
stage: (Cryoangle(prefix='', name='cryoangle', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint'], configuration_attrs=[], limits=None, egu='')), (), {}
stage: (SamplePosVirtualMotor(prefix='XF:23ID1-ES{Dif-Ax:SY}', name='sy', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint'], configuration_attrs=[], limits=None, egu='')), (), {}
stage: (SamplePosVirtualMotor(prefix='XF:23ID1-ES{Dif-Ax:SZ}', name='sz', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint'], configuration_attrs=[], limits=None, egu='')), (), {}
stage: (Temperature(prefix='XF:23ID1-ES{TCtrl:1', name='temp', read_attrs=['a', 'b'], configuration_attrs=[])), (), {}
stage: (EpicsSignal(read_pv='UT:SB1-Cu:1{}T:Spply_Ld-I', name='uw_temp', value=85.17899322509766, timestamp=1486007104.277091, tolerance=0.01, pv_kw={}, auto_monitor=False, string=False, write_pv='UT:SB1-Cu:1{}T:Spply_Ld-I', limits=False, put_complete=False)), (), {}
stage: (PGM(prefix='XF:23ID1-OP{Mono', name='pgm', read_attrs=['energy', 'pit', 'x', 'grt_pit', 'grt_x'], configuration_attrs=[])), (), {}
stage: (EPU1(prefix='XF:23ID-ID{EPU:1', name='epu1', read_attrs=['gap', 'phase'], configuration_attrs=[])), (), {}
stage: (EPU2(prefix='XF:23ID-ID{EPU:2', name='epu2', read_attrs=['gap', 'phase'], configuration_attrs=[])), (), {}
stage: (SlitsGapCenter(prefix='XF:23ID1-OP{Slt:1', name='slt1', read_attrs=['xg', 'xc', 'yg', 'yc'], configuration_attrs=[])), (), {}
stage: (SlitsGapCenter(prefix='XF:23ID1-OP{Slt:2', name='slt2', read_attrs=['xg', 'xc', 'yg', 'yc'], configuration_attrs=[])), (), {}
stage: (SlitsXY(prefix='XF:23ID1-OP{Slt:3', name='slt3', read_attrs=['x', 'y'], configuration_attrs=[])), (), {}
stage: (Mirror(prefix='XF:23IDA-OP:1{Mir:1', name='m1a', read_attrs=['z', 'y', 'x', 'pit', 'yaw', 'rol'], configuration_attrs=[])), (), {}
stage: (MotorMirror(prefix='XF:23ID1-OP{Mir:3', name='m3a', read_attrs=['x', 'pit', 'bdr'], configuration_attrs=[])), (), {}
stage: (EpicsSignal(read_pv='XF:23ID1-OP{TCtrl:1-Chan:A}T-I', name='mono_tempa', value=302.751, timestamp=1486007104.017108, tolerance=0.001, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{TCtrl:1-Chan:A}T-I', limits=False, put_complete=False)), (), {}
stage: (EpicsSignal(read_pv='XF:23ID1-OP{TCtrl:1-Chan:B}T-I', name='mono_tempb', value=302.749, timestamp=1486007104.07721, tolerance=0.001, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{TCtrl:1-Chan:B}T-I', limits=False, put_complete=False)), (), {}
stage: (EpicsSignal(read_pv='XF:23ID1-OP{Mon-Grt:1}T-I', name='grt1_temp', value=31.400000000000002, timestamp=1486007103.995303, tolerance=0.1, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{Mon-Grt:1}T-I', limits=False, put_complete=False)), (), {}
stage: (EpicsSignal(read_pv='XF:23ID1-OP{Mon-Grt:2}T-I', name='grt2_temp', value=28.900000000000002, timestamp=1486007103.995305, tolerance=0.1, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{Mon-Grt:2}T-I', limits=False, put_complete=False)), (), {}
stage: (EpicsSignal(read_pv='XF:23ID-SR{}I-I', name='ring_curr', value=250.2705838930956, timestamp=1486007104.175842, tolerance=0.01, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID-SR{}I-I', limits=False, put_complete=False)), (), {}
stage: (Nanopositioner(prefix='XF:23ID1-ES{Dif:Lens', name='nanop', read_attrs=['tx', 'ty', 'tz', 'bx', 'by', 'bz'], configuration_attrs=[])), (), {}
stage: (EpicsSignal(read_pv='XF:23ID1-BI{Diag:6-Cam:1}Stats1:Total_RBV', name='diag6_monitor', value=458034177.0, timestamp=1486007104.577509, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-BI{Diag:6-Cam:1}Stats1:Total_RBV', limits=False, put_complete=False)), (), {}
stage: (Tardis(prefix='', name='tardis', settle_time=0.0, timeout=None, egu='', limits=(0, 0), source='computed', read_attrs=['h', 'k', 'l', 'theta', 'omega', 'chi', 'phi', 'delta', 'gamma'], configuration_attrs=['UB', 'energy'], concurrent=True)), (), {}
stage: (PrototypeEpicsScaler(prefix='XF:23ID1-ES{Sclr:1}', name='sclr', read_attrs=['channels', 'time'], configuration_attrs=['preset_time', 'presets', 'gates', 'names', 'freq', 'auto_count_time', 'count_mode', 'delay', 'auto_count_delay', 'egu'])), (), {}
stage: (ProductionCamCustom(prefix='XF:23ID1-ES{FCCD}', name='fccd', read_attrs=['hdf5', 'acquire_time', 'plugin_num_images', 'stats1', 'stats2', 'stats3', 'stats4', 'stats5'], configuration_attrs=[])), (), {}
open_run: (None), (), {'plan_args': {'num': 10, 'detectors': ["EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Th}Mtr', name='theta', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])", "EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Del}Mtr', name='delta', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])", "EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Gam}Mtr', name='gamma', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])", "EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:X}Mtr', name='sx', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])", "EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Y}Mtr', name='say', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])", "EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Z}Mtr', name='saz', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])", "Cryoangle(prefix='', name='cryoangle', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint'], configuration_attrs=[], limits=None, egu='')", "SamplePosVirtualMotor(prefix='XF:23ID1-ES{Dif-Ax:SY}', name='sy', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint'], configuration_attrs=[], limits=None, egu='')", "SamplePosVirtualMotor(prefix='XF:23ID1-ES{Dif-Ax:SZ}', name='sz', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint'], configuration_attrs=[], limits=None, egu='')", "Temperature(prefix='XF:23ID1-ES{TCtrl:1', name='temp', read_attrs=['a', 'b'], configuration_attrs=[])", "EpicsSignal(read_pv='UT:SB1-Cu:1{}T:Spply_Ld-I', name='uw_temp', value=85.17899322509766, timestamp=1486007104.277091, tolerance=0.01, pv_kw={}, auto_monitor=False, string=False, write_pv='UT:SB1-Cu:1{}T:Spply_Ld-I', limits=False, put_complete=False)", "PGMEnergy(prefix='XF:23ID1-OP{Mono', name='pgm_en', parent='pgm', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint', 'stop_signal'], configuration_attrs=[], limits=None, egu='')", "EPU1(prefix='XF:23ID-ID{EPU:1', name='epu1', read_attrs=['gap', 'phase'], configuration_attrs=[])", "EPU2(prefix='XF:23ID-ID{EPU:2', name='epu2', read_attrs=['gap', 'phase'], configuration_attrs=[])", "SlitsGapCenter(prefix='XF:23ID1-OP{Slt:1', name='slt1', read_attrs=['xg', 'xc', 'yg', 'yc'], configuration_attrs=[])", "SlitsGapCenter(prefix='XF:23ID1-OP{Slt:2', name='slt2', read_attrs=['xg', 'xc', 'yg', 'yc'], configuration_attrs=[])", "SlitsXY(prefix='XF:23ID1-OP{Slt:3', name='slt3', read_attrs=['x', 'y'], configuration_attrs=[])", "Mirror(prefix='XF:23IDA-OP:1{Mir:1', name='m1a', read_attrs=['z', 'y', 'x', 'pit', 'yaw', 'rol'], configuration_attrs=[])", "MotorMirror(prefix='XF:23ID1-OP{Mir:3', name='m3a', read_attrs=['x', 'pit', 'bdr'], configuration_attrs=[])", "EpicsSignal(read_pv='XF:23ID1-OP{TCtrl:1-Chan:A}T-I', name='mono_tempa', value=302.751, timestamp=1486007104.017108, tolerance=0.001, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{TCtrl:1-Chan:A}T-I', limits=False, put_complete=False)", "EpicsSignal(read_pv='XF:23ID1-OP{TCtrl:1-Chan:B}T-I', name='mono_tempb', value=302.749, timestamp=1486007104.07721, tolerance=0.001, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{TCtrl:1-Chan:B}T-I', limits=False, put_complete=False)", "EpicsSignal(read_pv='XF:23ID1-OP{Mon-Grt:1}T-I', name='grt1_temp', value=31.400000000000002, timestamp=1486007103.995303, tolerance=0.1, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{Mon-Grt:1}T-I', limits=False, put_complete=False)", "EpicsSignal(read_pv='XF:23ID1-OP{Mon-Grt:2}T-I', name='grt2_temp', value=28.900000000000002, timestamp=1486007103.995305, tolerance=0.1, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{Mon-Grt:2}T-I', limits=False, put_complete=False)", "EpicsSignal(read_pv='XF:23ID-SR{}I-I', name='ring_curr', value=250.2705838930956, timestamp=1486007104.175842, tolerance=0.01, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID-SR{}I-I', limits=False, put_complete=False)", "Nanopositioner(prefix='XF:23ID1-ES{Dif:Lens', name='nanop', read_attrs=['tx', 'ty', 'tz', 'bx', 'by', 'bz'], configuration_attrs=[])", "EpicsSignal(read_pv='XF:23ID1-BI{Diag:6-Cam:1}Stats1:Total_RBV', name='diag6_monitor', value=458164436.0, timestamp=1486007104.457199, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-BI{Diag:6-Cam:1}Stats1:Total_RBV', limits=False, put_complete=False)", "Tardis(prefix='', name='tardis', settle_time=0.0, timeout=None, egu='', limits=(0, 0), source='computed', read_attrs=['h', 'k', 'l', 'theta', 'omega', 'chi', 'phi', 'delta', 'gamma'], configuration_attrs=['UB', 'energy'], concurrent=True)", "PrototypeEpicsScaler(prefix='XF:23ID1-ES{Sclr:1}', name='sclr', read_attrs=['channels', 'time'], configuration_attrs=['preset_time', 'presets', 'gates', 'names', 'freq', 'auto_count_time', 'count_mode', 'delay', 'auto_count_delay', 'egu'])", "ProductionCamCustom(prefix='XF:23ID1-ES{FCCD}', name='fccd', read_attrs=['hdf5', 'acquire_time', 'plugin_num_images', 'stats1', 'stats2', 'stats3', 'stats4', 'stats5'], configuration_attrs=[])"]}, 'plan_name': 'ct', 'num_steps': 10, 'detectors': ['theta', 'delta', 'gamma', 'sx', 'say', 'saz', 'cryoangle', 'sy', 'sz', 'temp', 'uw_temp', 'pgm_en', 'epu1', 'epu2', 'slt1', 'slt2', 'slt3', 'm1a', 'm3a', 'mono_tempa', 'mono_tempb', 'grt1_temp', 'grt2_temp', 'ring_curr', 'nanop', 'diag6_monitor', 'tardis', 'sclr', 'fccd'], 'count_time': None}
Transient Scan ID: 73260 @ 2017/02/01 22:45:04
Persistent Unique Scan ID: '899ef9a0-17e5-412f-8543-8bfd39ce4afb'
checkpoint: (None), (), {}
trigger: (EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Th}Mtr', name='theta', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])), (), {'group': 'trigger-cd03a9'}
trigger: (EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Del}Mtr', name='delta', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])), (), {'group': 'trigger-cd03a9'}
trigger: (EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Gam}Mtr', name='gamma', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])), (), {'group': 'trigger-cd03a9'}
trigger: (EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:X}Mtr', name='sx', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])), (), {'group': 'trigger-cd03a9'}
trigger: (EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Y}Mtr', name='say', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])), (), {'group': 'trigger-cd03a9'}
trigger: (EpicsMotor(prefix='XF:23ID1-ES{Dif-Ax:Z}Mtr', name='saz', settle_time=0.0, timeout=None, read_attrs=['user_readback', 'user_setpoint'], configuration_attrs=['motor_egu'])), (), {'group': 'trigger-cd03a9'}
trigger: (Cryoangle(prefix='', name='cryoangle', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint'], configuration_attrs=[], limits=None, egu='')), (), {'group': 'trigger-cd03a9'}
trigger: (SamplePosVirtualMotor(prefix='XF:23ID1-ES{Dif-Ax:SY}', name='sy', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint'], configuration_attrs=[], limits=None, egu='')), (), {'group': 'trigger-cd03a9'}
trigger: (SamplePosVirtualMotor(prefix='XF:23ID1-ES{Dif-Ax:SZ}', name='sz', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint'], configuration_attrs=[], limits=None, egu='')), (), {'group': 'trigger-cd03a9'}
trigger: (Temperature(prefix='XF:23ID1-ES{TCtrl:1', name='temp', read_attrs=['a', 'b'], configuration_attrs=[])), (), {'group': 'trigger-cd03a9'}
trigger: (EpicsSignal(read_pv='UT:SB1-Cu:1{}T:Spply_Ld-I', name='uw_temp', value=85.17899322509766, timestamp=1486007104.277091, tolerance=0.01, pv_kw={}, auto_monitor=False, string=False, write_pv='UT:SB1-Cu:1{}T:Spply_Ld-I', limits=False, put_complete=False)), (), {'group': 'trigger-cd03a9'}
trigger: (PGMEnergy(prefix='XF:23ID1-OP{Mono', name='pgm_en', parent='pgm', settle_time=0.0, timeout=None, read_attrs=['readback', 'setpoint', 'stop_signal'], configuration_attrs=[], limits=None, egu='')), (), {'group': 'trigger-cd03a9'}
trigger: (EPU1(prefix='XF:23ID-ID{EPU:1', name='epu1', read_attrs=['gap', 'phase'], configuration_attrs=[])), (), {'group': 'trigger-cd03a9'}
trigger: (EPU2(prefix='XF:23ID-ID{EPU:2', name='epu2', read_attrs=['gap', 'phase'], configuration_attrs=[])), (), {'group': 'trigger-cd03a9'}
trigger: (SlitsGapCenter(prefix='XF:23ID1-OP{Slt:1', name='slt1', read_attrs=['xg', 'xc', 'yg', 'yc'], configuration_attrs=[])), (), {'group': 'trigger-cd03a9'}
trigger: (SlitsGapCenter(prefix='XF:23ID1-OP{Slt:2', name='slt2', read_attrs=['xg', 'xc', 'yg', 'yc'], configuration_attrs=[])), (), {'group': 'trigger-cd03a9'}
trigger: (SlitsXY(prefix='XF:23ID1-OP{Slt:3', name='slt3', read_attrs=['x', 'y'], configuration_attrs=[])), (), {'group': 'trigger-cd03a9'}
trigger: (Mirror(prefix='XF:23IDA-OP:1{Mir:1', name='m1a', read_attrs=['z', 'y', 'x', 'pit', 'yaw', 'rol'], configuration_attrs=[])), (), {'group': 'trigger-cd03a9'}
trigger: (MotorMirror(prefix='XF:23ID1-OP{Mir:3', name='m3a', read_attrs=['x', 'pit', 'bdr'], configuration_attrs=[])), (), {'group': 'trigger-cd03a9'}
trigger: (EpicsSignal(read_pv='XF:23ID1-OP{TCtrl:1-Chan:A}T-I', name='mono_tempa', value=302.751, timestamp=1486007105.31741, tolerance=0.001, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{TCtrl:1-Chan:A}T-I', limits=False, put_complete=False)), (), {'group': 'trigger-cd03a9'}
trigger: (EpicsSignal(read_pv='XF:23ID1-OP{TCtrl:1-Chan:B}T-I', name='mono_tempb', value=302.75, timestamp=1486007105.377318, tolerance=0.001, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{TCtrl:1-Chan:B}T-I', limits=False, put_complete=False)), (), {'group': 'trigger-cd03a9'}
trigger: (EpicsSignal(read_pv='XF:23ID1-OP{Mon-Grt:1}T-I', name='grt1_temp', value=31.400000000000002, timestamp=1486007104.995398, tolerance=0.1, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{Mon-Grt:1}T-I', limits=False, put_complete=False)), (), {'group': 'trigger-cd03a9'}
trigger: (EpicsSignal(read_pv='XF:23ID1-OP{Mon-Grt:2}T-I', name='grt2_temp', value=28.900000000000002, timestamp=1486007104.995399, tolerance=0.1, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-OP{Mon-Grt:2}T-I', limits=False, put_complete=False)), (), {'group': 'trigger-cd03a9'}
trigger: (EpicsSignal(read_pv='XF:23ID-SR{}I-I', name='ring_curr', value=250.26446298471004, timestamp=1486007105.196532, tolerance=0.01, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID-SR{}I-I', limits=False, put_complete=False)), (), {'group': 'trigger-cd03a9'}
trigger: (Nanopositioner(prefix='XF:23ID1-ES{Dif:Lens', name='nanop', read_attrs=['tx', 'ty', 'tz', 'bx', 'by', 'bz'], configuration_attrs=[])), (), {'group': 'trigger-cd03a9'}
trigger: (EpicsSignal(read_pv='XF:23ID1-BI{Diag:6-Cam:1}Stats1:Total_RBV', name='diag6_monitor', value=459401119.0, timestamp=1486007105.417923, pv_kw={}, auto_monitor=False, string=False, write_pv='XF:23ID1-BI{Diag:6-Cam:1}Stats1:Total_RBV', limits=False, put_complete=False)), (), {'group': 'trigger-cd03a9'}
trigger: (Tardis(prefix='', name='tardis', settle_time=0.0, timeout=None, egu='', limits=(0, 0), source='computed', read_attrs=['h', 'k', 'l', 'theta', 'omega', 'chi', 'phi', 'delta', 'gamma'], configuration_attrs=['UB', 'energy'], concurrent=True)), (), {'group': 'trigger-cd03a9'}
trigger: (PrototypeEpicsScaler(prefix='XF:23ID1-ES{Sclr:1}', name='sclr', read_attrs=['channels', 'time'], configuration_attrs=['preset_time', 'presets', 'gates', 'names', 'freq', 'auto_count_time', 'count_mode', 'delay', 'auto_count_delay', 'egu'])), (), {'group': 'trigger-cd03a9'}
trigger: (ProductionCamCustom(prefix='XF:23ID1-ES{FCCD}', name='fccd', read_attrs=['hdf5', 'acquire_time', 'plugin_num_images', 'stats1', 'stats2', 'stats3', 'stats4', 'stats5'], configuration_attrs=[])), (), {'group': 'trigger-cd03a9'}
wait: (None), (), {'group': 'trigger-cd03a9'}
^CA 'deferred pause' has been requested. The RunEngine will pause at the next checkpoint. To pause immediately, hit Ctrl+C again in the next 10 seconds.
Deferred pause acknowledged. Continuing to checkpoint.
^C
Your RunEngine is entering a paused state. These are your options for changing
the state of the RunEngine:

RE.resume()    Resume the plan.
RE.abort()     Perform cleanup, then kill plan. Mark exit_stats='aborted'.
RE.stop()      Perform cleanup, then kill plan. Mark exit_status='success'.
RE.halt()      Emergency Stop: Do not perform cleanup --- just stop.

Pausing...
Out[1270]: ['899ef9a0-17e5-412f-8543-8bfd39ce4afb']

In [1271]: RE.stop()
wen-hu commented 7 years ago

FCCD back to work by start another count_dark(10) measurement, but not when doing RE(ct()). Any comments?

RE(ct(num=10))
Transient Scan ID: 73264 @ 2017/02/01 23:12:58
Persistent Unique Scan ID: '33a4961a-6481-4b01-90c1-68a4b2c2886d'
^CA 'deferred pause' has been requested. The RunEngine will pause at the next checkpoint. To pause immediately, hit Ctrl+C again in the next 10 seconds.
Deferred pause acknowledged. Continuing to checkpoint.
^C
Your RunEngine is entering a paused state. These are your options for changing
the state of the RunEngine:

RE.resume()    Resume the plan.
RE.abort()     Perform cleanup, then kill plan. Mark exit_stats='aborted'.
RE.stop()      Perform cleanup, then kill plan. Mark exit_status='success'.
RE.halt()      Emergency Stop: Do not perform cleanup --- just stop.

Pausing...
Out[1287]: ['33a4961a-6481-4b01-90c1-68a4b2c2886d']

In [1288]: RE.stop()
Stopping: running cleanup and marking exit_status as 'success'...

In [1289]: count_dark(10)
Current fCCD config: 10.0 images @ 1.00 Hz = 10.000 s

2017-02-01 23:15:04
******** Shutter closed. Collecting dark images for 10 seconds ********

Transient Scan ID: 73265 @ 2017/02/01 23:15:04
Persistent Unique Scan ID: '2a4211d2-cc70-4c2e-85bf-154a73e13620'
+-----------+------------+-------------------+
|   seq_num |       time | fccd_stats4_total |
+-----------+------------+-------------------+
|         1 | 23:15:13.9 |          -6390376 |
+-----------+------------+-------------------+
generator ct ['2a4211'] (scan num: 73265)

Shutter opened.
Current fCCD config: 1800.0 images @ 1.00 Hz = 1800.000 s

In [1290]: count_dark?
Signature: count_dark(tot_time)
Docstring: <no docstring>
File:      ~/Users/2017_01_CMP/Useful_functions.py
Type:      function

In [1291]: count_dark??
Signature: count_dark(tot_time)
Source:   
def count_dark(tot_time):
    freq = 1./fccd.acquire_time.get()
    init_time = fccd.plugin_num_images.get() / freq

    olog('Scan {}: Counting Darkfield for {} s'.format(
         (db[-1].get('start').get('scan_id')+1), tot_time))

    fccd_set(freq, tot_time)
    shutter_open = shchk()

    # Close shutter
    shclose()
    RE(bp.sleep(1./freq + 0.5))  # longer sleep needed to clear CCD

    print('\n{}\n******** Shutter closed. Collecting dark images for {} seconds ********\n'.format(
          time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), tot_time))

    _ct_dark()

    # Open shutter again if it was initially open
    if shutter_open:
        shopen()
        RE(bp.sleep(0.5))
        print('\nShutter opened.')

    sleep(0.5)
    fccd_set(freq, init_time)
File:      ~/Users/2017_01_CMP/Useful_functions.py
Type:      function
danielballan commented 7 years ago

Note from in-person conversation with Wen: it was working, then it was not working, then they restarted the IOCS and it was still not working, then an hour later it was working. They are not sure what changed. I don't know how to proceed with this one without more info or a free afternoon to poke at the FCCD and try to break it again.