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
Disappearing bars
- andymartyn
- Posts: 25
- Joined: Wed Oct 29, 2014 4:51 am
- ksaenz
- Enovation Controls Development
- Posts: 263
- Joined: Thu Aug 19, 2010 7:53 am
Re: Disappearing bars
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
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
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.
Staff Engineer - MurCal, Inc.