[INSTRM-1397] Fast SpS reads for cobra moves behind blackspots Created: 12/Oct/21  Updated: 19/Nov/21  Resolved: 19/Nov/21

Status: Done
Project: Instrument control development
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: hassan Assignee: cloomis
Resolution: Done Votes: 0
Labels: EngRun, SPS
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
blocks INSTRM-1414 Update blackspot geometry Done
blocks PIPE2D-914 Add support for SpS fast-mode exposur... Done
Relates
relates to INSTRM-1385 Make MCS readouts more efficient: pip... Done
relates to INSTRM-1439 Add spsActor command for quick banded... Done
Story Points: 2
Sprint: PreEngRun4, EngRun3Cleanup

 Description   

During the Sept 2021 Engineering Run, the SpS was used to determine how well a cobra can be positioned behind a blackspot given that the MCS CANON camera was not sensitive enough. Please find ways to improve the read time, for example special exposures where the data are windowed and binned (as the flux is the main output needed from the SpS).



 Comments   
Comment by cloomis [ 12/Oct/21 ]

I propose reading out the middle couple hundred rows. The wipe for a full frame takes ~7-8s, so this should take ~5s without much effort (i.e. without making a faster wipe).

If we trust the detector map, we could use the first few rows and skip the wipe. So in practice I'd implement this as read window=row0,row1 and wipe up to row0.

Comment by cloomis [ 10/Nov/21 ]

Added row0=N nrows=M to ccd read command. This extends the existing nrows= logic, which has always simply read out some rows, without caring about image file format. But if both are specified, a full size image is generated, with the band of rows placed appropriately and the rest left at 0.

For the wipe, requesting nrows=0 makes the exposureState= keywords get spit out correctly and the puts the detector voltages in the integration mode, but no clocking is done. This also extends existing engineering functionality.

When reading a band of rows, W_CDROW0 and W_CDROWN are added to the PHDU.

Still slower than I want, but most of the easy time has been picked out. Umm, for row0=1800 and nrows=400, 11s.

Need to confirm that the data look good, but am waiting on a lamp replacement for that.

Comment by cloomis [ 19/Nov/21 ]

Implemented as discussed. Could still make it a bit faster but there is no tall pole.

Generated at Sat Feb 10 16:35:02 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.