Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

CSS pv() function missing in Phoebus

Aberta
#3,745 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
java
Domínio
backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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?

Linguagem predominante
Java
Estrelas
130
Forks
132
Merge médio
2d 11h
PRs com merge (30d)
19

Preparar o ambiente

  • Sem Dockerfile nem arquivo Docker Compose
  • Tem um modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de ControlSystemStudio/phoebus

Todas as issues de ControlSystemStudio/phoebus

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.