Skip to content
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

Muons: ability to edit tpar file within IBEX #6232

Closed
Tom-Willemsen opened this issue Feb 12, 2021 · 12 comments
Closed

Muons: ability to edit tpar file within IBEX #6232

Tom-Willemsen opened this issue Feb 12, 2021 · 12 comments
Assignees

Comments

@Tom-Willemsen
Copy link
Contributor

Tom-Willemsen commented Feb 12, 2021

As a muon scientist, I would like the ability to edit TPAR files within IBEX.

Acceptance criteria

  • An editor for TPAR files exists within ibex

Notes

  • According to scientist, this functionality existed in SECI
  • It is "particularly convenient for the users when they find their sample has affected the heating times for the fridges"
  • Present solution is for the scientists to edit tpar files in notepad++
  • can possibly reuse bits and pieces of script gen?

Discussed ~1:04 20/06/24

@kjwoodsISIS
Copy link
Contributor

kjwoodsISIS commented Feb 12, 2021

According to scientist, this functionality existed in SECI

Really? Could either of @davidkeymer or @KathrynBaker demo it to us?

Is there any urgency to this request for a TPAR editor?

@Tom-Willemsen
Copy link
Contributor Author

Is there any urgency to this request for a TPAR editor?

I have enquired about the relative urgency and it is "below script generator improvements" for MuSR.

@John-Holt-Tessella
Copy link
Contributor

Think we should ask some questions about why:

  • Did they want these values to be tempoary, if so how long is temporary until config change, until next warm up etc
  • Can they already set temporary values in the IOC; is this better?
  • Do they only edit it for the coldest temperature or is it for all temps?

@KathrynBaker
Copy link
Member

After a brief discussion in teams with @Tom-Willemsen and a look through the LabVIEW code, I am not sure where this functionality exists.

As I recall TPAR files were something used within genie, not LabVIEW, as such we would need to get an instrument scientist to demo it to see how it was used, as it may have been functionality in SECI as opposed to an area I can comment on easily.

However, in the conversation with Tom, these were associated files under SECI, which means that changing config would change the TPAR file, which might be what they are referring to. As such we may be looking for a solution more in keeping with the rotation mode functions.

#5081 might provide some insight as well.

@JamesKingWork
Copy link
Contributor

After a discussion with the muon scientists (@KathrynBaker and @rerpha were present so please correct me if I have anything wrong), the following came out:

  • In SECI they were only editing a temporary tpar file and would go back to a "safe" tpar file after
  • They only need to use a simple text editor "not a fancy table"
  • They don't want files to be directly editable and writable to disk

My proposed solution:

I will take this to the muon scientists to get feedback and check it meets their requirements but thought I should post it first here so interested devs can also give feedback.

  • The tpar file contents become a pv which we can read from and write to
  • The tpar editor can change the tpar file currently being edited, this file is displayed to the user (should be a PV)
  • The tpar editor reads that tpar contents PV and allows the user to make changes, changes are only written to the tpar contents PV when a button is pressed
  • When in manager mode the tpar contents PV can be written to file and be made permanent

tpareditor

@rerpha
Copy link
Contributor

rerpha commented Jul 26, 2021

Looks good. Can this be in the form of an OPI to make things nice and easy to implement?

@FreddieAkeroyd
Copy link
Member

FreddieAkeroyd commented Jul 26, 2021

May be able to adapt https://github.com/ISISComputingGroup/EPICS-FileServer to serve the file

@JamesKingWork
Copy link
Contributor

JamesKingWork commented Aug 16, 2021

After showing the muon instrument scientists the design we have decided that we should develop a generic text editor which we can use to make the tpar editor. It will have the following functions:

  • The user will be able to open a file (the location where the file can be opened from should be configurable)
  • The file that was last opened should be displayed
  • The user can set the contents of the editor to a PV (what PV that is should be configurable)
  • The contents can be saved as to a file (this can be configured to be protected by manager mode)
  • The title of the editor should be configurable (e.g. to Tpar editor)
  • Reloading the config or reopening the file will set the contents back to the default (the contents of the last opened file)

New design:

image

@LilithCole
Copy link
Contributor

re-requested by MuSR, scientist couldn't find how to change a file like they could before migration so couldn't continue with experiment.

@github-actions github-actions bot added the ready label Jun 20, 2024
@KathrynBaker KathrynBaker added this to the SPRINT_2024_06_20 milestone Jun 20, 2024
@KathrynBaker KathrynBaker moved this to Backlog in PI_2024_02 Jun 20, 2024
@isaachilly isaachilly self-assigned this Jun 24, 2024
@isaachilly isaachilly moved this from Backlog to In Progress in PI_2024_02 Jun 24, 2024
@KathrynBaker KathrynBaker moved this from In Progress to Backlog in PI_2024_02 Jul 18, 2024
@KathrynBaker KathrynBaker moved this from Backlog to In Progress in PI_2024_02 Jul 30, 2024
@KathrynBaker KathrynBaker moved this to In Progress in PI_2024_08 Aug 2, 2024
@FreddieAkeroyd
Copy link
Member

I think this is the editor on HIFI

image

@rerpha
Copy link
Contributor

rerpha commented Sep 17, 2024

ISISComputingGroup/EPICS-FileServer#2
ISISComputingGroup/ibex_gui#1740
ISISComputingGroup/EPICS-ioc#877
#8507
ISISComputingGroup/EPICS-IOC_Test_Framework#639
https://github.com/ISISComputingGroup/ibex_developers_manual/wiki/Serve-file-contents-over-EPICS

To review copy over eg. EMUs files in \instrument\settings to your \instrument\settings, add MUONTPAR to your config with the EDITOR_TPAR_FILE_DIR macro set to \instrument\settings\, then add a text editor device screen and have a play around with a file.

PS - the "set contents to pv" is not an easy task, nor is it really an actual use case, therefore i've deliberately left the functionality out - there are no PVs which even store a TPAR file currently spun up by anything in ibex, and forwarding an entire waveform is not something easily done - dfanout just forwards a single element.

@rerpha rerpha moved this from In Progress to Review in PI_2024_08 Sep 17, 2024
@rerpha rerpha moved this from In Progress to Review in PI_2024_08 Sep 23, 2024
@Chsudeepta
Copy link
Contributor

This ticket can be closed. All elements have been reviewed and tested with known limitations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests