Disappearing bars

andymartyn
Posts: 25
Joined: Wed Oct 29, 2014 4:51 am

Disappearing bars

Post by andymartyn » Thu Apr 16, 2015 10:01 am

There are J1939 values that are 0 to 100% such as SPN 96. When I use a bar graph and use this value and set it to 100% on PowerVision it loos fine but on the device when I send 100% the bar clears and is empty. I can only solve this by changing the Library value to be 101% as maximum

I have also noticed that using visibility conditions so a bar onlyu appears between, say, 25 and 100% (<=) at 100% again the bar dissappears and I need to set the visibility condition to 101 maximum

It's almost like the checks are using < regardless
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: Disappearing bars

Post by ksaenz » Fri Apr 17, 2015 7:58 am

Hello andymartyn,

This is a problem with parameters that have a resolution of 0.4 per bit like fuel level.

Because of the double math the result ends up being a little over 100 and that is outside the valid range so it sets the variable to invalid.

What I do is set the parameter definition maximum to 100.1 like you're already doing.

You might need to do that in your visible condition too.

Regards,
ksaenz
jbilleter
Posts: 87
Joined: Fri Oct 15, 2010 6:49 pm

Re: Disappearing bars

Post by jbilleter » Mon Sep 28, 2015 2:03 pm

I just discovered this same issue with a text gauge. I set the parameter definition maximum to 103 and that fixed it. Thanks for the post.
Jacob Billeter
Staff Engineer - MurCal, Inc.