Skip to content

How to configure the script option "Skip executions triggered by PVs' first value" to avoid execution when reload displays? #1871

Answered by kasemir
haitao127 asked this question in Q&A
Discussion options

You must be logged in to vote

In the display builder, a re-load is a complete shutdown and re-initialization start of a display.

In general, scripts should be avoided. A script should certainly not "do" anything. Scripts in displays need to be idempotent and only perform minor tasks related to the actual display, like transform received data from several PVs into a formatting suitable for a table. A script should never "do" something like write to PVs to perform automation or protection functionality.
If opening a display N times, including N instances of CS-Studio running in parallel or re-opening a display N times poses a problem, or if closing a display means you lose control system functionality because you depend…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@haitao127
Comment options

Answer selected by haitao127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants