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 display.precision and .format #19

Closed
mdavidsaver opened this issue Jun 13, 2018 · 2 comments
Closed

Add display.precision and .format #19

mdavidsaver opened this issue Jun 13, 2018 · 2 comments
Assignees

Comments

@mdavidsaver
Copy link
Member

Add new fields for DBR style numeric precision and enumeration with format style.

@mdavidsaver
Copy link
Member Author

My in-progress https://github.com/mdavidsaver/pva2pva/tree/format changes the display sub-structure to be as follows. The re-use of 'display.format' with a different type (enum vs. string) seems likely to cause problems. An alternative name will be needed.

    structure display
        double limitLow 0
        double limitHigh 0
        string description 
        string units 
        int precision 0
        enum_t format (0) Default
            int index 0
            string[] choices ["Default", "String", "Decimal", "Exponential", "Hex", "Engineering"]

@kasemir @shroffk @ttkorhonen @anjohnson @ralphlange

@mdavidsaver
Copy link
Member Author

Closed with #24 .

Updated display sub-structure

    structure display
        double limitLow -10.123
        double limitHigh 10.123
        string description testing
        string units x
        int precision 2
        enum_t form (3) Decimal
            int index 3
            string[] choices ["Default", "String", "Binary", "Decimal", "Hex", "Exponential", "Engineering"]

Configured by including eg. info(Q:form, "Hex") in record definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant