Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Sequence tag with Default value showing wrong value on parameter

Solved746 views31st May 2024Sequence noset
0
Emir Varupa [SLC] [DevOps Advocate]115 12th January 2024 0 Comments

Hello Dojo,

I'm trying to set a parameter to N/A and noticed something strange happening,
Here is the parameter:
<Param id="1000" trending="true">
<Name>tunerFrequency</Name>
<Description>Frequency</Description>
<Information>
<Subtext>
<![CDATA[Tuner Frequency]]>
</Subtext>
</Information>
<Type>read</Type>
<Interprete>
<RawType>numeric text</RawType>
<Type>double</Type>
<LengthType>next param</LengthType>
<Sequence noset="true">div:1000</Sequence>
<DefaultValue>-1000</DefaultValue>
<Exceptions>
<Exception id="1" value="-1">
<Display state="disabled">N/A</Display>
<Value>-1</Value>
</Exception>
</Exceptions>
</Interprete>
<Display>
<RTDisplay>true</RTDisplay>
<Range>
<Low>87.1</Low>
<High>107.9</High>
</Range>
<Decimals>2</Decimals>
<Units>MHz</Units>
<Positions>
<Position>
<Page>General</Page>
<Column>0</Column>
<Row>0</Row>
</Position>
</Positions>
</Display>
<Measurement>
<Type>number</Type>
</Measurement>
</Param>

As you can see, I'm trying to set this parameter to -1 in order for it to display "N/A" by default. However, I've discovered that the parameter value is actually -0.001. It appears that the value 1000 was divided twice by 1000, resulting in -0.001 instead of -1. Could it be that there is an issue with the combination of Sequence and DefaultValue tag, or is this the intended behavior?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 31st May 2024

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Edib Šupić [SLC] [DevOps Catalyst]2.10K Posted 14th January 2024 1 Comment

Hi Emir,

based on information provided here, Sequence tag should only be used for polled parameters. I've tested it, and it does seems that default value gets sequence applied to it twice(for other operations as well). If you were to change value of DefaultValue tag to -1000000, would that work in your case?

Note that it might not be the best idea to rely on this, it might be undefined behavior. Ideally you would avoid doing this. Since your range is from 87.1-107.9, maybe you could set both exception value and default value to 0, in that case it would be irrelevant how many times sequence gets applied to it.

Hope this helps,

Cheers

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 31st May 2024
Emir Varupa [SLC] [DevOps Advocate] commented 15th January 2024

Hello Edib,

-1000000 will work, but I believe there is an issue with negative values when the DefaultValue and Sequence tag are both used on a parameter, I would prefer if I didn’t do workarounds.
This parameter is also filled in by polling from SNMP, I created a blank protocol with only this parameter, and removed the SNMP tag to check if I would encounter the same problem.

You are viewing 1 out of 2 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin