-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xrun.abort does not close fast shutter #151
Comments
Thanks so much for this Dan.
…On Tue, Oct 30, 2018 at 5:34 PM DanOlds ***@***.***> wrote:
When xrun.abort is run (after ctrl+c is used to exit a script), the fast
shutter is not automatically closed.
Expected Behavior
Ideally, xrun.abort should close the fast shutter to help preserve the
detector against unnecessary exposure.
Current Behavior
While the fast shutter can be closed manually using the CS interface,
users are often unaware of this issue.
Possible Solution
xrun.abort should close the fast shutter if it is open, and keep it closed
if it is already closed.
Steps to Reproduce (for bugs)
1. Start a run.
2. ctrl-c once the measurement starts (after dark is collected)
3. xrun.abort()
Context
This can be a problem for strongly scattering materials, leading to
unnecessary detector exposure.
Priority
Many photons died bringing you this request.
Your Environment
28-ID-1 and, presumably, 28-ID-2
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#151>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEDrUTji6tHxEi5Zmqi1k3AAY8vHVJMFks5uqMX-gaJpZM4YC7AN>
.
|
@chiahaoliu should this be run through a message mutator looking at stop docs? |
@CJ-Wright We have a finalizer that should ensure the fast shutter is closed after a scan. I am wondering what happens if you do
cc: @DanOlds |
They should all issue stop documents (except for the emergency stop) |
I think the question is whether they also close the fast shutter?
@DanOlds pointed out an important point. I think our general philosophy is
that the fast-shutter state should be "normally closed", so that it is
always explicitly opened before a light-exposure. If that is true, then I
think Dan's requested behavior for the xrun.abort() is the the desired
behavior, so don't we just need to add a shutter close statement to the
abort logic, or figure out why it is not working if it is already there?
Let's schedule this for the next release and assign it to someone (maybe
this could be @DanOlds 's issue!). It seems important but quick to me,
unless I am missing something.
S
…On Tue, Oct 30, 2018 at 11:01 PM Christopher J. Wright < ***@***.***> wrote:
They should all issue stop documents (except for the emergency stop)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#151 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEDrUau9Q4J5loU-lfI5Mn-qQWtd9HLCks5uqRKbgaJpZM4YC7AN>
.
|
Tested at beamline yesterday. I confirmed neither Our current logic is the same as the way @sbillinge described. We only open the shutter before collecting data and use Maybe @tacaswell or @danielballan can give some comments? |
|
This is a good issue to work together with Dan and Tim to have Dan PR a solution as a first issue. |
One hook you have to this is to implement a 'stop' method on the shutter that ensures it is closed (which will happen even on However, it looks like you only install that |
yes, we have both open and close plan stubs: https://github.com/xpdAcq/xpdAcq/blob/master/xpdacq/beamtime.py#L145 Edit: more context, yes if the shutter is under xpdAcq control then we open the shutter appropriately |
@DanOlds would you be able to test this with the new software? |
I will, once it is installed.
…On Tue, Feb 5, 2019, 11:10 AM Christopher J. Wright < ***@***.*** wrote:
@DanOlds <https://github.com/DanOlds> would you be able to test this with
the new software?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#151 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMQJYZWO1mk5sR_JjcxrggIJfGm0joaiks5vKazagaJpZM4YC7AN>
.
|
Thank you! |
xrun.abort() still does not close the fast shutter. |
This suggestion of @tacaswell's seems the simplest way to ensure that the shutter closes when the RunEngine aborts. |
I thought that was what |
Oh, no, |
Right, so I'm confused as to why the messages from the |
Without more context, I can't say. My point is that if the desired outcome is to always close the shutter on exit, implementing |
I guess I'm trying to figure out if there is an error in |
There are no known problems with |
Fixed via: NSLS-II-PDF/profile_collection#6 ? |
Tested and working! |
You probably also want to implement resume to re-open the shutter if the user chooses not to stop/abort/halt. |
When xrun.abort is run (after ctrl+c is used to exit a script), the fast shutter is not automatically closed.
Expected Behavior
Ideally, xrun.abort should close the fast shutter to help preserve the detector against unnecessary exposure.
Current Behavior
While the fast shutter can be closed manually using the CS interface, users are often unaware of this issue.
Possible Solution
xrun.abort should close the fast shutter if it is open, and keep it closed if it is already closed.
Steps to Reproduce (for bugs)
Context
This can be a problem for strongly scattering materials, leading to unnecessary detector exposure.
Priority
Many photons died bringing you this request.
Your Environment
28-ID-1 and, presumably, 28-ID-2
The text was updated successfully, but these errors were encountered: