Open cnlklink opened 1 year ago
I know we discussed this issue a bit in the last status meeting. Someone (was it @beauremus ?) asked if this should be handled by DPM. Seems to me that's the best spot for it. Thoughts?
If the param page switches between NOM/TOL and MIN/MAX, does it resend the request to DPM? The modeling I proposed above would do the switch in the app and DPM would simply provide the data returned by the device.
I guess the question is: is it useful for DPM to provide the switch? I can't think of scripts or apps (besides param page) that actually care about the alarm limits. They may care that a device is in alarm, but not so much the limits. The param page cares because users may want to better understand the limits by switching between views.
But, then, I've never written an in-depth Python or ACL script. Maybe they do commonly access the limits and like to switch between the types.
Actually, what I've implemented so far displays all four values. I figured that the existing parameter page is asking you to toggle between the two because of limited screen space. But we can easily pack four values onto the page. And so, there's no switch to be done really.
What's stored in the database - nom and tolerance? And so min/max are calculated?
I believe the white fields, highlighted in red, are the FE config and the cyan field, highlighted in pink, is the device DB config for what the user wants to see.
But we can easily pack four values onto the page.
Something like:
Max: 100.0
Nom: 75.0 Tol: +/- 25.0
Min: 50.0
I'm going to tuck this thought at the end of this issue:
A parameter row could simply show the most general, useful stuff (name, description, setting, reading, status) and a details icon. Clicking the icon could animate the row to expand vertically to show details like basic status bits and alarm limits.
_Originally posted by @rneswold in https://github.com/fermi-controls/parameter_page_app/pull/54#discussion_r1213390130_