LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
X.

Improved data entry specifications

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

I just got bitten by a classic: a parameter was set to  big no-no value (zero) and I went ahead making a division by this number, creating an array of the resulting size, throwing a "Not enough memory for this operation" error, stopping LV.

I could have tested for a zero value, but most of the time, this kind of problems would be more easily prevented by a more powerful "Data Entry" Properties Tab.

 

ScreenHunter_001.jpg

 

Currently, taking the zero value as an example, you can set the value zero as the Minimum value, but cannot IGNORE it, because the ignore condition is interpreted as a strict inequality:

 

ignore all x such that x < min.

 

What I need is:

 

ignore all x such that x <= min.

 

In other words, when I overwrote the previous value of 0.1 by what I though was 0.01 but in fact was 0, my control would have ignoredthe new value and remained 0.1, preventing the annoying out of memory error and VI stopping.

 

To solve this kind of problem, my suggestion is to have the equivalent of the "In Range and Coerce" options in the "Data Entry" tab:

 

ScreenHunter_002.jpg <================ScreenHunter_003.jpg

 

in other words, the ability to include or exclude the min and max value from the accepted values.

If I may, it might be useful to have an arry of such conditions, but I will not push my hopes to far on this one...

 

PS: Obviously, this could be result in ambiguities with Floating point values different from zero, due to the finite precision of their representation. And it would be compounded due to the current bug in the Data Entry tab regarding the displayed precision of numeric values in this tab.

11 Comments
Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.