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

PEARL Pressure Controller: Estimated Time to Reach Nominal Pressure #6766

Closed
2 tasks
JackEAllen opened this issue Sep 15, 2021 · 2 comments
Closed
2 tasks

Comments

@JackEAllen
Copy link
Member

As a: developer

I would like to replicate the existing functionality in the LabView VI for the Pearl Pressure controller, displaying inside the OPI device screen using DB logic if possible, or a script if not possible to estimate the time for the device to reach nominal pressure.

Acceptance Criteria

  • DB logic or a script exists to calculate estimated time until nominal pressure is reached.
  • Estimated time to reach nominal pressure displayed in OPI device screen.

Extra Information

This issue will likely be reliant on work completed as part of #6763 to interpret how the calculation was previously achieved.

Why it is needed?

  • Functionality exists in LabView VI and should be replicated in IBEX GUI device screen for consistency.

Where required files/links are

  • Manual: \\isis\shares\ISIS_Experiment_Controls\Manuals\PEARL Pressure Controller\PEARL handbook_v3_5.docx
  • Labview Vi: C:\LabVIEW Modules\Instruments\PEARL\PEARL Pressure Cell Controller
  • Please see conversation in PEARL: IOC & OPI for Pressure Controller #6040 to view a screenshot of LabView VI for reference.
  • PEARL Pressure Controller Emulator: C:\Instrument\Apps\EPICS\support\PearlPressureController\master
  • PEARL Pressure Controller IOC: C:\Instrument\Apps\EPICS\ioc\master\PEARLPC
  • PEARL Pressure Controller OPI: C:\Instrument\Dev\ibex_gui\base\uk.ac.stfc.isis.ibex.opis\resources
@KathrynBaker
Copy link
Member

Detail on the LabVIEW implementation (part of #6763):
The values come from the st command.

Actual Setpoint is the 13th section of the reply from st ($2.B as I read the protocol file)
Actual Pressure is the 15th section of the reply from st ($2.D as I read the protocol file)
Actual Rate is the 11th section of the reply from st ($1.K as I read the protocol file)
All converted to decimal values from string

The time is to reach is calculated as:
(Absolute of (Actual Setpoint - Actual Pressure)) ÷ (Actual Rate ÷ 60)

That gives the time in seconds which can then be displayed suitable (in hh:mm:ss in the LabVIEW code)

@Tom-Willemsen
Copy link
Contributor

Already completed as part of an earlier ticket.

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

No branches or pull requests

3 participants