pcdshub / las-dispersion-scan

pypret-based laser dispersion scan tools and user interface
Other
0 stars 3 forks source link

Dispersion Scan "Crashes" Spectrometer IOC #30

Open slactjohnson opened 11 months ago

slactjohnson commented 11 months ago

Current Behavior

Recently @brittonm has noticed that running scans in TMO seems to cause the spectrometer to crash. The event rate for the spectrum falls from 5Hz to <1Hz. I see a few "PV: LM1K4:COM_DP2_TF1_SP1:GET_STATUS Active scan count exceeded!" errors in the IOC log, but didn't see these pop up while creating this issue myself.

Possible Solution

Is there a potential issue with the collection loop? Or maybe we're triggering a bug in the IOC. Needs more investigation.

Steps to Reproduce (for bugs)

See the current spectrometer and scan settings:

image

image

Context

This slows the scan down to a crawl. Instead of ~4 minutes, scans take 20 minutes or more.

Your Environment

Currently running off of Ken's enh_scan_averaging branch.

slactjohnson commented 11 months ago

I think this is where we would potentially spam the spectrometer but based on current settings we would only check the spectrum every 120ms, which seems fine... https://github.com/pcdshub/las-dispersion-scan/blob/master/las_dispersion_scan/dscan.py#L580

slactjohnson commented 11 months ago

Nothing reported by logging. The application just hangs. image