Skip to content

Commit

Permalink
added new information to devices
Browse files Browse the repository at this point in the history
  • Loading branch information
evalott100 committed Oct 8, 2024
1 parent 38c21f6 commit 7e1f1cb
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion src/pandablocks_ioc/_pvi.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,10 @@ def create_pvi_records(record_prefix: str):
RecordName(pvi_record_name): {
"+id": "epics:nt/NTPVI:1.0",
"display.description": {"+type": "plain", "+channel": "VAL"},
"": {"+type": "meta", "+channel": "VAL"},
"": {
"+type": "meta",
"+channel": "VAL",
},
}
},
)
Expand All @@ -363,6 +366,39 @@ def create_pvi_records(record_prefix: str):

pvi_records.append(pvi_record_name)

top_level_pvi_record_name = "PVI"
description = builder.longStringIn(
f"{top_level_pvi_record_name}:DESCRIPTION",
initial_value="PVs making up Interface for entire panda.",
)
description.add_info(
"Q:group",
{
RecordName(top_level_pvi_record_name): {
"+id": "epics:nt/NTPVI:1.0",
"display.description": {"+type": "plain", "+channel": "VAL"},
"": {"+type": "meta", "+channel": "VAL"},
}
},
)
top_level_block_pvi = builder.longStringIn(
top_level_pvi_record_name + "_PV",
initial_value=RecordName(top_level_pvi_record_name),
)
top_level_block_name_suffixed = "value.d"
top_level_block_pvi.add_info(
"Q:group",
{
RecordName("PVI"): {
top_level_block_name_suffixed: {
"+channel": "VAL",
"+type": "plain",
"+trigger": top_level_block_name_suffixed,
}
}
},
)

# TODO: Properly add this to list of screens, add a PV, maybe roll into
# the "PLACEHOLDER" Device?
# Add Tables to a new top level screen
Expand Down

0 comments on commit 7e1f1cb

Please sign in to comment.