Visible Conditions

Discuss issues and ideas you have to configuring displays with PowerVision
andymartyn
Posts: 25
Joined: Wed Oct 29, 2014 4:51 am

Visible Conditions

Post by andymartyn » Wed May 06, 2015 4:05 am

I have a custom CAN message that I need to read for battery conditions and I have created this into the Library. I have then mapped these variables automatically. I use min as the unit

So I have 2 bytes that are used for battery time remaining and is in minutes. If set to 65535 then it means the battery is charging.

I have mapped a visible condition onto this condition using minutes and it doesn't work. It I try visible conditions of a much lower value, say 0 to 1000 or 0 to 10 then it still doesn't work. I can see in the remote debugger that the variable value is greater but it is still displaying the text gauge.

I tried changing the variable unit to hours (0 to 10) and then sent 600 and it works, I even tried in seconds and 0 to 72000 works as a visible condidion so I am really confused. I can't use hours as a comparison as 65535 doesn't fit into hours as a whole number

Any help appreciated on how you would do this
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: Visible Conditions

Post by stalley » Thu May 07, 2015 8:14 am

Hello andymartyn,

I am posting a demo config for you to see if I understand the problem. In your problem, I'm not sure what condition should display the variable, so I just guessed at something for the demo.

Sorry, in the demo, I didn't label any of the keys ;) , but you can see in the config that the top right button increments, next decrements and third button sets it to 65535.

The visible condition on the text gauge is to display when the variable is 0-19
Demo - VisibileCondition.zip
(676.97 KiB) Downloaded 17 times
Hope I didn't totally miss the problem. Let me know your results!
Sara Talley
Software Engineer
Enovation Controls