cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Gauge Widget to show state definition with range value

sbt
13-Aquamarine
13-Aquamarine

Gauge Widget to show state definition with range value

Hello,

I would like to display alarm and warning limits on both ends.

Meaning i should display

Alarm >80 and also < 10

Warning >60 and also <30

And value between 30 and 60 is normal

 

How should i set my state definition to achieve the same and if cannot achieve through gauge widget then what is the ideal work around to achieve the same.

 

Attached image for reference.

sbt_0-1587912707684.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaiChung
22-Sapphire I
(To:sbt)

You basically have 5 states

<10 - red

<30 - yellow

<60 - green

<80 - yellow

Default - red

 

View solution in original post

9 REPLIES 9
PaiChung
22-Sapphire I
(To:sbt)

You basically have 5 states

<10 - red

<30 - yellow

<60 - green

<80 - yellow

Default - red

 

sbt
13-Aquamarine
13-Aquamarine
(To:PaiChung)

Hello PaiChung,

 

My mistake!! but your solution is perfect, i tried the other way round.

 

Thank you for the response and guiding me through the approach.

sbt
13-Aquamarine
13-Aquamarine
(To:PaiChung)

Hello PaiChung,

I have one more question , although i can handle it from multiple gauges but let me know your thoughts.

 

scenario is  there are cases where the limits can exist on the higher end or some time on the lower end or both.

1. I have only one gauge widget. 

2. For both end limits the given state definition will work.

3. If i have only higher limits then i can pass value 0 to both the lower limits and with the same gauge it worked.

 

Now the same gauge will not work with the same state definition for limits that exists only on the lower end but not on higher end

 

So how can i achieve all the scenario with only one state definition and one gauge widget.

 

Thanks,

Sunay    

PaiChung
22-Sapphire I
(To:sbt)

State definition cut offs become exposed as Widget parameters, so you can dynamically bind the limits.

Add the limits as properties and you should be able to have a single Gauge do what you need.

You can even create the gauge as a mashup and bind the values with mashup parameters.

Now you have a 'standard gauge mashup' you can drop in whenever you need your gauge.

sbt
13-Aquamarine
13-Aquamarine
(To:PaiChung)

Yes you are right once the state definition is associated to a gauge widget as per the state definition

i will have 4 properties exposed to bind from the widget it self.

lets say for 

<10 - red - exposed property

<30 - yellow - exposed property

<60 - green - exposed property

<80 - yellow - exposed property

Default - red

 scenario 1 : Both limits set- works 

<10 - red - AlarmLo value = 10

<30 - yellow - warningLo value = 30

<60 - green - warningHI value = 60

<80 - yellow - AlarmHI value = 80

 

scenario 2 : only higher limits set - works 

<10 - red - AlarmLo value = 0

<30 - yellow - warningLo value = 0

<60 - green - warningHI value = 60

<80 - yellow - AlarmHI value = 80

 

scenario 3 : only lower limits set - doesnt work

<10 - red - AlarmLo value = 10

<30 - yellow - warningLo value = 30

<60 - green - warningHI value = 0

<80 - yellow - AlarmHI value = 0

 

Thanks

PaiChung
22-Sapphire I
(To:sbt)

Not sure what exactly isn't working for you.

but you can always create several 'standard gauges' that work for the particular scenarios

 

sbt
13-Aquamarine
13-Aquamarine
(To:PaiChung)

I have attached files run the mashup gaugetesting and modify service in the thingalarmlimits for scenarios.

The 3rd scenario will not work and looks like below

sbt_0-1588014504131.png

 

PaiChung
22-Sapphire I
(To:sbt)

Right the progression only works in the smaller than and then progresses to a next state.

You'll need to create a new State Based definition for your third scenario, like I mentioned an additional 'standard gauge'

You want: 

scenario 3 : only lower limits set - doesnt work

<10 - red - AlarmLo value = 10

<30 - yellow - warningLo value = 30

<60 - green - warningHI value = 0

<80 - yellow - AlarmHI value = 0

 

So it has to be redone as:

<10 red

< 30 yellow

default green

this will get you up to 10 as RED, between 10-30 as YELLOW anything above 30 as GREEN

sbt
13-Aquamarine
13-Aquamarine
(To:PaiChung)

Yes we have to go with multiple gauges as with one single gauge and single state definition. we ll not get all scenarios covered.

But thanks for your information!!  

Top Tags