vasole / pymca

PyMca Toolkit git repository
Other
57 stars 51 forks source link

Automatically updating spec.log files in PyMCA #1063

Open adas42 opened 4 months ago

adas42 commented 4 months ago
Screenshot 2024-02-27 at 19 25 00

Hello, I was wondering if it is possible to have PyMCA update the spec.log file without having to hit the refresh button. This would be very helpful for use during beamline alignment. Thank you!

vasole commented 4 months ago

I have implemented a similar thing on HDF5, but it also requires a user action (click on the last scan), so it does not make any improvement.

I guess what you actually want is to have the information of the on-going scan without having to hit the refresh button.

That is accessible via shared memory for linux and Mac (not for windows).

If I remember well the SPEC commands to make things comfortable where:

SPEC> jdo sps
SPEC> shareddata

and then access the SPEC session via the SPEC icon (top right of your image) and the SPS tab.

If the sps.mac macro is missing in your SPEC installation, please let me know.

adas42 commented 4 months ago

Thanks so much for the response. The SPS tab actually works well for us however is only showing the current scan. Is there a way to stay in the SpecFile tab to have the ability to look at previous scans as well while the file/plot autoupdates?

Thanks once again for your efforts into PyMCA!