Hi
Just would like to know how to implement the if else logic using XML tags in the protocol development? e.g. for parameter 100. if parameter value = 1 which will be normal and everything else will be warning.
For example, In xml tags, we have <discreet> tag to map different values. we can map value 0 to "clear" and map 1 to "warning". But is there a way that we map 0 to "clear" and everything else to "warning"? I know we can use QAction C# code to do it but just would like to know if we could do it using xml tags?
<Measurement>
<Type>discreet</Type>
<Discreets>
<Discreet>
<Display>clear</Display>
<Value>0</Value>
</Discreet>
<Discreet>
<Display>warning</Display>
<Value>1</Value>
</Discreet>
</Discreets>
</Measurement>
Thanks in advance.
Hi Miao Miao,
Does the parameter necessarily needs to be defined as a discreet parameter? Is it possible to define this parameter e.g. as a string parameter? Since you are setting severities as displayed values, is it not an option to use alarm templates to assign these severities? For example, I can assign the following template to a string parameter:
As a result, whenever the value of this parameter is different from OK, a 'Warning' severity will be assigned to the parameter:
Hi:
Thanks for the reply. Yes, the parameter can be string type.
The wildcard “*” does the job.
Thanks