LabVIEW Idea Exchange

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

Limit entry of minimum field width

Status: Declined

Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.

Add a limitation for the minimum field width for numerics.

The maximal accepted value should be limited according to the format and the display style of the numeric. For example 2 for a U8 with hex display.

Currently, this missing limitation can lead to confusing code/display. For example, with a minimum width of 4 and "Pad with zeros on left", above numeric will have a "U16 look".

 

Use minimum field width.jpg

 

A particular thought would be needed about how to adapt the entered value when the format or the display style changes.

Not obvious. The cure could be worse than the disease !

 

What do you think about this idea ?

 

 

16 Comments
Manzolli
Active Participant

Just convert all to U32.

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
RavensFan
Knight of NI

Why is there all this debate?

 

As Intaris said, it doesn't make sense to start prohibiting something now in LabVIEW that was prevented before.  And if you do want to have the display "look" like it is another datatype, you are forcing the programmer to jump through more hoops to do that.

 

Is there really any problem with just leaving this feature as it stands now where people can allow LabVIEW to display the values any way they want?

Intaris
Proven Zealot

As Intaris said, it doesn't make sense to start prohibiting something now in LabVIEW that was NOT prevented before

 

I'm presuming that was a typo.....

 

I also fail to see the reason for a discussion if the default formatters are changed to be as Altenbach suggested.  THAT I would fully support.

JB
Trusted Enthusiast
Trusted Enthusiast

Like many of you, I'm not a fan of limitations. Therefore, the default configuration suggested by Altenbach seems a good solution.

 

The origin of this idea has already been mentioned. Do integer constants with superfluous zeros make sense on the diagram ? The answer may be as various as we are. On the FP, there are probably somes cases were this can be useful.

RavensFan
Knight of NI

As Intaris said, it doesn't make sense to start prohibiting something now in LabVIEW that was NOT prevented before


Thanks Intaris.  You are correct.  That was mistyped.  I was thinking "wasn't" and just came up short when I typed it.

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.