LabVIEW Idea Exchange

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

Programmatically allow set include limits to "In Range and Coerce" function

Status: Declined

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

It would be nice if we could programmatically set the inclusion of the upper and lower limits in "In Range and Coerce" function by having two additional input terminals in this function. This two extra terminals should be optional. With a value connected, the context menu option should be override.

 

Now it's possible to do it with a case structure. We may need to have up to 4 cases to cover all possibilities.

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
4 Comments
fabric
Active Participant
4 cases ... or use a single "select" primitive on each of the upper/lower inputs. Just switch the value between +/-Inf and the desired value.
Darin.K
Trusted Enthusiast

> Just switch the value between +/-Inf and the desired value

 

Actually by 'include' the OP is referring to whether or not the limit is inclusive or not (ie. greater than versus greater than or equal).  The choice you get by clicking the diamonds.

fabric
Active Participant

Ahhh... my bad. (For some reason I always thought the black diamonds meant "include" as in whether to include the entire "In Range?" test for each limit! Smiley Surprised The *actual* implementation probably makes much more sense...)

Darren
Proven Zealot
Status changed to: Declined

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