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

+type:"structure" does not work as documented. #49

Open
mdavidsaver opened this issue Sep 18, 2022 · 0 comments
Open

+type:"structure" does not work as documented. #49

mdavidsaver opened this issue Sep 18, 2022 · 0 comments

Comments

@mdavidsaver
Copy link
Member

cf. #48 The mapping is incorrectly applied to the parent structure.

record(longout, "$(P):ENUM:INDEX") {
    field(VAL, "1")
    field(PINI, "YES")
    info(Q:group, {
        "$(P):ENUM":{
            +id:"epics:nt/NTEnum:1.0",
            "value":{+type:"structure", +id:"enum_t"},        # BUG
            "value.index":{+type:"plain", +channel:"VAL"},
            "":{+type:"meta", +channel:"VAL"}
        }
    })
}

As a workaround, an invalid child field can be specified.

            "value.0workaround":{+type:"structure", +id:"enum_t"},
$ pvinfo TST:enum1:ENUM
TST:enum1:ENUM
Server: 192.168.1.197:5075
Type:
    epics:nt/NTEnum:1.0
        structure record
            structure _options
                uint queueSize
                boolean atomic
        alarm_t alarm
            int severity
            int status
            string message
        structure timeStamp
            long secondsPastEpoch
            int nanoseconds
            int userTag
        enum_t value
            string[] choices
            int index
@mdavidsaver mdavidsaver mentioned this issue Mar 27, 2023
21 tasks
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