NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Announcements
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
Wolfgang

'+' sign in numeric controls

Status: Under Consideration
by Active Participant Wolfgang on ‎11-01-2010 03:06 AM

As suggested about two years ago (http://forums.ni.com/t5/LabWindows-CVI/Is-it-possible-to-have-an-explicit-sign-in-numeric-controls/m...) I am still looking for a possibility to explicitly show the positive sign of a numeric value in numeric controls, i.e. the control should display '+6.789' instead of '6.789'.

 

Phrased differently I would like to have one more attribute 'SHOW_POSITIVE_SIGN' that could be set to

 

0: don't show the plus sign, i.e. display numbers as is implemented now, default

1: show plus sign for positive numbers

2: show plus sign for positive numbers and zero

 

 

Comments
by Active Participant menchar ‎11-06-2010 02:36 PM - edited ‎11-06-2010 02:37 PM

And while Wolfgang's on the topic,  how about allowing a default value of "not a number" (NaN) for numeric controls with a floating point type?

 

NaN is specific to the IEEE flt pt spec but I is CVI supported on any non IEEE flt pt platform?

 

NaN is very good for indicating a "no measurement" or impossible measurement value without using some additional context to let the user know he / she's not looking at a good value.

 

In the old days we used 'funny numbers" (e.g. a negative value for time, power" to flag this, but NaN is perfect for it.

 

Without the control NaN default, you have to be sure and hack it in at startup or whenever you default the control, something of a needless hassle.

 

And if NaN works, then how about +Infinity, -Infinity and some of the other non-numeric values supported by IEEE flt pt?

 

It would be nice if NI would more fully incorporate IEEE flt pt into CVI.  After all, it's hard to find a CVI app that doesn't use flt pt.

by Active Participant LuisG on ‎12-13-2010 11:03 PM
Status changed to: In Development
 
by Active Participant Laura F. on ‎12-16-2010 08:44 AM
Status changed to: New
prior status deleted, setting to default
by Active Participant LuisG on ‎12-17-2010 11:38 AM
Status changed to: Under Consideration
 
About LabWindows/CVI Idea Exchange

Do you have a feature idea for how to improve LabWindows/CVI? Submit and vote on ideas now!
  1. Browse by label or search in the LabWindows/CVI Idea Exchange to see if your idea has previously been submitted. If your idea exists, be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click New Idea to submit a product idea. You should submit a separate post for each idea. Watch as the community gives your idea kudos and adds their input.
  3. Give kudos to other ideas that you would like to see implemented!
  4. NI R&D will review ideas that have been submitted and update the status.

Note: the LabWindows/CVI Idea Exchange is not the appropriate forum to submit technical support questions.

The LabWindows/CVI R&D team is committed to reviewing every idea submitted via the LabWindows/CVI Idea Exchange. However, we cannot guarantee the implementation of any LabWindows/CVI Idea Exchange submission.

Idea Statuses
Top Kudoed Authors
User Kudos Count
2
2
1
1
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page