Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

CSS pv() function missing in Phoebus

Aperta
#3,745 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

The issue describes a missing pv() expression function and gives a nested expression example, but names no implementation files or tests. First check how Phoebus currently parses backtick expressions and whether they support nested evaluation; then assess the scope of adding pv() as an alternative. Done would mean the example can resolve the computed PV name and retrieve its value, with tests covering that behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Many of the functions available in CS-Studio are also available in Phoebus, however I have noticed that one that we make heavy use of is missing and that is the pv() function. This basically turns whatever is inside it into a PV object that CSS then gets the value of.

In many instances we can just replace that with the Phoebus syntax using backticks ``.

However there are some cases that do not work in Phoebus, for example, functions within the backticks or nested backticks. An example of what was done in CSS is shown below:

=pv(concat(pv("XXX:NAME:OF:PV"), ":HELLO"))

where:

  • pv("XXX:NAME:OF:PV") would return the value of this PV, which is a string with the name of another PV, e.g. XXX:NAME:OF:PV.val = "TEST:VAC:01"

  • concat(..., ":HELLO") takes the string PV value from above and appends "HELLO" to it to get a new PV name, e.g. "TEST:VAC:01:HELLO"

  • then =pv(...) gets the value of "TEST:VAC:01:HELLO"

As far as I can tell, there is no easy way of doing this in Phoebus except using scripts.

I was just wondering whether there was a reason that the pv() function from CSS wasn't re-implemented in Phoebus? Would it be beneficial to have it?

Lingua principale
Java
Stelle
130
Fork
132
Merge medio
3g 1h
PR unite (30g)
24

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ControlSystemStudio/phoebus

Tutte le issue di ControlSystemStudio/phoebus

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.