Skip to content
Snippets Groups Projects
Commit 74f3d586 authored by Timo Korhonen's avatar Timo Korhonen
Browse files

Add info tags to create a NTTable with module names and version numbers

parent 6a408053
No related branches found
No related tags found
1 merge request!123Add info tags to create a NTTable with module names and version numbers
...@@ -5,6 +5,9 @@ record(waveform, "$(REQUIRE_IOC):Modules") ...@@ -5,6 +5,9 @@ record(waveform, "$(REQUIRE_IOC):Modules")
field(NELM, "$(MODULE_COUNT)") field(NELM, "$(MODULE_COUNT)")
field(PINI, "YES") field(PINI, "YES")
field(DISP, "1") field(DISP, "1")
info(Q:group, {
"$(REQUIRE_IOC):LoadedModules":{"value.MODS":{+type:"plain",+channel:"VAL"}}
})
} }
record (waveform, "$(REQUIRE_IOC):Versions") record (waveform, "$(REQUIRE_IOC):Versions")
...@@ -13,6 +16,9 @@ record (waveform, "$(REQUIRE_IOC):Versions") ...@@ -13,6 +16,9 @@ record (waveform, "$(REQUIRE_IOC):Versions")
field (FTVL, "STRING") field (FTVL, "STRING")
field (NELM, "$(MODULE_COUNT)") field (NELM, "$(MODULE_COUNT)")
field (PINI, "YES") field (PINI, "YES")
info(Q:group, {
"$(REQUIRE_IOC):LoadedModules":{"value.VERS":{+type:"plain",+channel:"VAL"}}
})
} }
record(waveform, "$(REQUIRE_IOC):ModuleVersions") record(waveform, "$(REQUIRE_IOC):ModuleVersions")
...@@ -40,3 +46,18 @@ record(stringin,"$(REQUIRE_IOC):BaseVersion") ...@@ -40,3 +46,18 @@ record(stringin,"$(REQUIRE_IOC):BaseVersion")
field(PINI, "YES") field(PINI, "YES")
field(DISP, "1") field(DISP, "1")
} }
# This record contains labels for the created NTTable, named $(REQUIRE_IOC):LoadedModules.
record(aai, "$(REQUIRE_IOC):Labels")
{
field(FTVL, "STRING")
field(NELM, "2")
field(PINI,"YES")
field(INP , {const:["Module", "Version"]})
info(Q:group, {
"$(REQUIRE_IOC):LoadedModules":{
+id:"epics:nt/NTTable:1.0",
"labels":{+type:"plain", +channel:"VAL"}
}
})
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment