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

add "Running IOCs" field to instrument page #83

Open
rerpha opened this issue Dec 4, 2024 · 1 comment
Open

add "Running IOCs" field to instrument page #83

rerpha opened this issue Dec 4, 2024 · 1 comment

Comments

@rerpha
Copy link
Contributor

rerpha commented Dec 4, 2024

I think this is an easy win as all you need to do is subscribe to
IN:INST:CS:BLOCKSERVER:IOCS, dehex and parse some JSON (we do this for the instlist already) then map it to a component.

make sure to create an interface for
A) the list of IOCs
B) the "IOC" object, which looks like this:

  "AEROFLEX_01": {
    "description": "Aeroflex Signal Generator",
    "running": false,
    "macros": [
      {
        "description": "Serial COM port",
        "pattern": "^COM[0-9]+$",
        "defaultValue": null,
        "hasDefault": "NO",
        "name": "PORT"
      },
      {
        "description": "Bus address e.g. GPIB address",
        "pattern": "^[0-9]+$",
        "defaultValue": "0",
        "hasDefault": "YES",
        "name": "BUS_ADDR"
      },
      {
        "description": "IP Address of prologix GPIB converter",
        "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$",
        "defaultValue": null,
        "hasDefault": "NO",
        "name": "PL_IPADDR"
      },
      {
        "description": "Type of Aeroflex",
        "pattern": "^(2023A|2030)$",
        "defaultValue": "2023A",
        "hasDefault": "YES",
        "name": "DEV_TYPE"
      }
    ],
    "pvsets": [],
    "pvs": []
  },

consider using something similar to the "Block" component where you have a basic
IOCNAME: RUNNINGSTATUS on first glance, but can expand to show the rest of the information.

@rerpha
Copy link
Contributor Author

rerpha commented Dec 6, 2024

may need to use db server PV for same reasons as ISISComputingGroup/IBEX#8590

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

No branches or pull requests

1 participant