Feature request: Support formulas in the Write PV action value field

未關閉
#3,941 6 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
java
領域
tooling

研究方向

Start by locating the Write PV action implementation and reading how it handles the Value field and PV values. Check whether the project already has formula or expression handling that could apply here. Done means the field can evaluate a formula that reads another PV and supports arithmetic such as incrementing a PV, without requiring a script.

由索引模型根據 Issue 內容生成。

描述

codathon discussion

It would useful to be able to use formulas in the "Value" field of a "Write PV" action. This would simplify many use cases that would otherwise require scripting, which we aim to minimise at ISIS. Below are some examples of where we would find this feature helpful.

Assign the value of one PV to another

e.g. PV Name: destination, Value: =`source`

We have a display that shows suggested steering magnet setpoints calculated by some diagnostics next to the current magnet setpoints, then there are buttons to assign the suggested to the actual setpoints if the operator chooses to use them. This requires a short script to implement, but would be simpler with the requested feature.

Image

Custom increment buttons

e.g. PV Name: $(pv_name), Value: =`$(pv_name)` + 1

We have some displays where users are used to having more increment/decrement options than the spinner or thumbwheel widgets provide. Being able to do in-place addition, subtraction, multiplication, etc would make this possible without scripting.

主要語言
Java
星號
130
分支
132
平均合併
2 天 8 小時
30 天內合併 PR
25

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 有 Pull Request 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

ControlSystemStudio/phoebus 的其他 Issue

查看 ControlSystemStudio/phoebus 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。