LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I round off numbers on displayed indicators

I am diplaying constantly changing values on the front panel from a while loop. The increment funtion in the data range does not work for indicators. How can I select to view the numbers to the nearest 10, 100, or other user selectable value. Thanks.
0 Kudos
Message 1 of 5
(3,081 Views)
Hi,

The simplest way is to use the Quotient And Remainder. This returns the
total number of times that y fits into x. Multiply this result by y, and you
get the effect you want. So, wire I to the x, and 10 to the y, and multiply
the result by 10, and put this result in the indicator...

Regards,

Wiebe.


"jonhelpmejon" wrote in message
news:50650000000800000045820000-1042324653000@exchange.ni.com...
> I am diplaying constantly changing values on the front panel from a
> while loop. The increment funtion in the data range does not work for
> indicators. How can I select to view the numbers to the nearest 10,
> 100, or other user selectable value. Thanks.
0 Kudos
Message 2 of 5
(3,081 Views)
Please see attached vi

PS: Just as what wiebie had mentioned
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 3 of 5
(3,081 Views)
Opps, Not Wiebie but Wiebe, my apologies!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 5
(3,081 Views)
Ian.f, never mind (I've been called a lot of names...). If you had not
mention it, I never would have noticed. Attachments don't show up in my
program...



"ian.f" wrote in message
news:50650000000500000071E60000-1042324653000@exchange.ni.com...
> Opps, Not Wiebie but Wiebe, my apologies!
0 Kudos
Message 5 of 5
(3,081 Views)