Enumerated items such as exposed by the EPICS mbbi record https://docs.epics-controls.org/projects/base/en/latest/mbbiRecord.html have a numeric integer value and an underlying fixed string meaning/representation. What is the best way to record these in NeXus? The numeric value can be logged as NXlog, but there is not currently somewhere to record the label attached to these enum states.
Is NXlog the best way to store these? A state number being numerically higher than another state number doesn't necessarily have the same meaning as e.g. one temperature value being higher than another. Storing the number is useful for quickly finding state changes, but is it confusing to use NXlog for such items? NXenumlog ? In either case you would need e.g. enum_names and enum_values fields to record the number -> name mapping
Alternatively you could log just the string state name and not the underlying number, NXlog does not currently support this, but a proposed NXtextlog could
Enumerated items such as exposed by the EPICS mbbi record https://docs.epics-controls.org/projects/base/en/latest/mbbiRecord.html have a numeric integer value and an underlying fixed string meaning/representation. What is the best way to record these in NeXus? The numeric value can be logged as
NXlog, but there is not currently somewhere to record the label attached to these enum states.Is
NXlogthe best way to store these? A state number being numerically higher than another state number doesn't necessarily have the same meaning as e.g. one temperature value being higher than another. Storing the number is useful for quickly finding state changes, but is it confusing to useNXlogfor such items?NXenumlog? In either case you would need e.g.enum_namesandenum_valuesfields to record the number -> name mappingAlternatively you could log just the string state name and not the underlying number,
NXlogdoes not currently support this, but a proposedNXtextlogcould