Open wen-hu opened 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
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.
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.