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

Multistate LED: Define states in class #2297

Closed
mgotz opened this issue Jun 14, 2022 · 3 comments · Fixed by #2302
Closed

Multistate LED: Define states in class #2297

mgotz opened this issue Jun 14, 2022 · 3 comments · Fixed by #2302

Comments

@mgotz
Copy link
Contributor

mgotz commented Jun 14, 2022

Hi,
I would like to define the states and associated colors for the LED (Multi State) with a class. This does not seem possible. Similarly, you can't define the symbols for a Symbol Widget with a class. Is this by design or could it be added?

The background is that we have a lot of alarm state indicators with red-yellow-green lights in old edm panels. I would like to have a unified aproach to replace these in Phoebus. So, a mulit state led with the class AlarmIndicator and/or a Symbol would be really useful.

@kasemir
Copy link
Collaborator

kasemir commented Jun 20, 2022

I'll have to look at it, but my hunch is that array-typed properties are not properly handled by the 'class' mechanism.
Font of a label, on/off color of a plain LED, .. all the scalar types are fine, but array types like the N state colors of a multistate LED or the N image files of a symbol aren't handled.

@kasemir
Copy link
Collaborator

kasemir commented Jun 21, 2022

Should now work for you

@mgotz
Copy link
Contributor Author

mgotz commented Jun 23, 2022

Thank you! This is great.

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 a pull request may close this issue.

2 participants