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

Datasources and process variables examples #2803

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

Mathis-Hu
Copy link
Contributor

Without Alarm Datasource.

Need further discussion before implementing Alarm datasource.

@shroffk

@shroffk
Copy link
Member

shroffk commented Sep 5, 2023

I think it is great to include examples on how to use the formulas... given our general recommendation to avoid scripts it would be nice to have alternatives highlighted in the default examples

image

image

@shroffk shroffk requested a review from kasemir September 5, 2023 20:32
@kasemir
Copy link
Collaborator

kasemir commented Sep 6, 2023

For local PVs it would be good to mention the syntax as loc://name(initial_value).
Without the initial value, they start out undefined.

I hesitate about "Channel Access is the default protocol".
Yes, we currently have org.phoebus.pv/default=ca, but there are already sites like ESS which try to have as much PVA as possible. Such sites might soon go with org.phoebus.pv/default=pva.

So maybe say:

ca:// selects Channel Access. pva:// selects PV Access.
If you omit the prefix, PVs default to the org.phoebus.pv/default preference setting.

Note that display files should typically not include the ca or pva selector in PV names.
It is a good practice to start all displays with some 'prefix' macro.
For example, a power supply display uses "$(P):Current".
You can then run that display with P=Accelerator:PS47 or P=Test:PS1, and going forward you can then open those same displays with P=ca://Accelerator:PS47 or P=pva://Test:PS1 as you start to support both protocols.

@shroffk shroffk merged commit 362f182 into ControlSystemStudio:master Sep 6, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants