Hi,
I would like to disable a double parameter under certain circumstances. I would like to do this by setting the value to be the maximum allowed value for a double (all other values are valid values). Could you please let me know how to represent this in the XML file? i.e. what do I put in the xxx below? Thanks
<Interprete>
<Type>double</Type>
<RawType>double</RawType>
<LengthType>fixed</LengthType>
<Length>8</Length>
<Exceptions>
<Exception id="1" value="xxx">
<Display state="disabled">NOT INITIALIZED</Display>
<Value>xxx</Value>
</Exception>
</Exceptions>
</Interprete>
Hi Craig,
As Jarno mentioned, in the linked question, the answer indicates that a double parameter in DataMiner is a standard double-precision floating-point number whose maximum limit is 1.79769313486232E308.
I gave it a try in a test protocol and managed to add it as is to the default value tag of a parameter, which will show in DataMiner as Infinity
Do note that I had to change the raw type from double to numeric text in order to be able to add the default value.
I also tried to add an exception to the parameter but could not get it to display as desired.
Not sure if there is another way of getting it to work but, if possible in your application, I would advise you to try and restrict the range the numbers can take.
That way you could specify a value outside that range without relying on extreme numbers.