LabVIEW Idea Exchange

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

"In range and coerce" function should have an option for a relative mode in addition to the current absolute mode.

Status: New

Save time and cleaner code by supporting a commonly used operation in test sequences. The In range and coerce would have

a mode to specify absolute (current operation) or relative mode where you wire a Center Value and Range instead of Upper Limit and Lower Limit.

Upper Limit=Center Value + Range

Lower Limit = Center Value - Range

Trivial to do but used commonly enough to be annoying to have to do that.

3 Comments
kegghead
Member

Agreed. And similar to the existing functionality, you should be able to set whether the number calculated from the range is an inclusive or exclusive limit.

Dennis_Knutson
Knight of NI

How about adding a Boolean to make the upper and lower limits a percentage of the center value?

JackDunaway
Trusted Enthusiast

Good idea about the percentage, but rather than an input parameter determining the operation, I would rather see a polymorphic selector on the overloaded function. (This would preclude runtime switching of the function behavior, but I don't imagine a scenario where runtime switching is desirable).