epics-modules / xspress3

EPICS areaDetector xspress3 module
GNU Lesser General Public License v3.0
4 stars 18 forks source link

SoftwareAdvance #41

Closed TomQD-94 closed 1 year ago

TomQD-94 commented 1 year ago

Added software advanced mode

TomQD-94 commented 1 year ago

This pull request adds a PV (P):(R):FrameAdvance, that when the trigger mode is set to software will advance the frame when set to 1 and stop the frame when set to 0 allowing control from scripts etc. There is also a Manual ADV option added that uses the internal timing generator so FrameAdvance=1 will start the frame which will last a fixed time. FrameAdvance=o is still required to put the system into the correct mode to start the next frame

newville commented 1 year ago

@TomQD-94 Thanks! I have not looked in detail, but hope to try this out today before merging.

One thing that occurs to me is that it might be helpful to look at other areaDetectors and see what they call the PVs to collect 1 frame with software trigger mode. I think that "FrameAdvance" or "ADV" might normally called "Trigger". And, I think that some detectors may have separate modes of "a software trigger to collect N frames at fixed time interval", "a software trigger to collect 1 frame for a fixed time interval", and "a software trigger to collect 1 frame until the next software trigger or Stop". I am not certain if there are AD conventions for all of these, but we should try to find out and follow those if we can.

Whether merging today or not, I will be going into "production mode" as X-rays come back tomorrow. I am planning to try to use this branch but with "circBuff=0" at least to start with...

TomQD-94 commented 1 year ago

ok great, I will look in to the naming conventions. You should bear in mind that this was developed separate to the circbuffer addition so without mering them togheter can't test both at the same time

newville commented 1 year ago

@TomQD-94 Ah, thanks, yes I see this is a PR to master. Do you have a preference for whether this gets merged before or after merging the circularbuffer branch? There might be that need to be resolved, though I have not looked into that yet.

TomQD-94 commented 1 year ago

Changed the name of the PV to SoftTrigger to be more recognisable to people. Changed trigger mode to Software+internal for clarity

TomQD-94 commented 1 year ago

@newville can this be merged in as well?

newville commented 1 year ago

@TomQD-94 sorry for the delay on this. merging, thanks!!