LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Minions

Visual Aides - Numeric Separators

Status: New

Why not create the option to change how the data is viewed on screen, similar to formatting in Excel or the Calculator function?

 

This could also be used for a hex display (I.E. FFFF FFFF), octal or even binary.  Options could be expanded to include how many characters before separation and what to use as a separator.

 

LV_Separator.PNG

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
23 Comments
Intaris
Proven Zealot

The characters used would have to be configurable as it's not the same all over the world but I like the idea.

 

Shane

RavensFan
Knight of NI
Yes, definitely.  It could be similar to cell formatting in Excel.  Many times I would prefer to see numeric values with the thousands separator included for easy readability.  For an indicator, you can easily make a string of the number and set some format codes.  But you wouldn't want to use a string control to have formatting in place of a numeric control.  You would have to do a lot of event structures, update while typing, etc. to check that the resulting typed string is a valid number.  Having that built into a numeric control would be much preferred.
altenbach
Knight of NI

Basically, all we need are a few more formatting codes that support these things. Then all we need is change the advanced formatting of the control or indicator.

 

(see also my nugget as presented by Darren :D)

I would also hope there re some industry standard formatting codes for these things,... 😉
.
Message Edited by altenbach on 07-10-2009 01:35 PM
Chris_in_Colorado
Member
i like it!
CrystalTech
Member
Very good Front Panel option.
Herbert
Member

As a scientist and educator I oppose the idea. Too often people are presenting results with 8, 10, 12 digits of precison whereas only 3 to 4 are real or in other way - where these 10 digits are scientifically nonsense.

Considering LabVIEW to be a platform for engineering applications I enjoy that it forces programmers to think about the reality of their results and seek for a suitable representation.

RavensFan
Knight of NI
While I appreciate your comments, they really have nothing to do with the suggestion that is proposed.  If I want to see a number such as 1.2 million shown, I want to see it as 1,200,000 not 1200000, a much less readable number.  Either way it is only 2 significant digits.  You argument about significant digits is a completely separate issue and can be used properly or improperly with any possible display format. 
X.
Trusted Enthusiast
Trusted Enthusiast

Altenbach's approach would be the most natural for a PROGRAMMER, but I could see that a user may want to change display style at run time, so the original suggestion seems preferable in this respect.

PS: I have just submitted a duplicate of this idea after an initial probing on the LabVIEW forum. Hopefully this will provide exposure to this easy feature.

PhillipBrooks
Active Participant

In metrology, calibration values can often extend out to 12 digits for reference standards.

 

Our practice was to place a space every three digits in the fractional part for readability.

 

a 1 uF standard capacitor might be reported as

 

1.000 000 021 07

 

I had to write my own format functions for this; a built in ability would have been nice...


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

jj2
NI Employee (retired)

Ability to scan comma seperated numbers text as well as display comma seperated numbers is extremely useful and would save development time for users for example in RF applications where large numbers are common and become hard to interpret without the comma or spaces.