Author Topic: Digital Panel Monitor only displays whole numbers  (Read 1973 times)

R5ROUSE

  • Newbie
  • *
  • Posts: 15
    • View Profile
Digital Panel Monitor only displays whole numbers
« on: December 11, 2013, 08:34:49 PM »
I'm trying to convert from engineering units back to voltage within the HMI. the digital panel monitor scale to option will get me to a whole number, but I'd like to display the whole number plus two decimal points for the sake of precision.

What am i missing on this control?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Digital Panel Monitor only displays whole numbers
« Reply #1 on: December 11, 2013, 09:44:22 PM »
The DigitalPanelMeter only works with integer values, but the trick to get it to appear to show an floating point number is to set the DecimalPosition to 2 and the ScaleFactor to 100

R5ROUSE

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Digital Panel Monitor only displays whole numbers
« Reply #2 on: December 12, 2013, 12:03:58 PM »
Actually, one of my students figured this one out before I could read your post.
What we ended up doing is changing the scalling value and adding the two decimal points.

For example, my scalling value was .00077. I changed the value to .077 and then added two decimal places.

so, 10 volts read as 1000 volts..but displays as 10.00 volts on the display.