LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
P@Anand

Configure values to the functions

Status: Declined

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

Adding an option of configuring values to the functions like comparison, calculation will make the things much easier.

 

Number 1.png

 

Number 2.png

 

Number 3.png

 

I Understand that this will be having limited use only as we can use this only when we are comparing the value with the predefined value but it still make sense for me to post it and I will add kudos if it has already posted.

 

1. The code looks simple

 

2. Save the use of Numeric memory

-----

The best solution is the one you find it by yourself
9 Comments
AristosQueue (NI)
NI Employee (retired)

> 2. Save the use of Numeric memory

 

How would it do that?

P@Anand
Trusted Enthusiast
The function itself will hold it. 🙂 (forgot to add the line)
-----

The best solution is the one you find it by yourself
AristosQueue (NI)
NI Employee (retired)

That's not going to improve performance or decrease memory -- I can't see any reason why the compiler would produce anything different than it does in current LV versions.

P@Anand
Trusted Enthusiast
I haven't mentioned that it will increase the performance. Its simple if "able to compare with zero why not with other numbers"
-----

The best solution is the one you find it by yourself
RavensFan
Knight of NI

Comparing with zero is not any different in performance compared to comparing with any other number.  The only thing it does is require one less node on the block diagram.

 

I just don't see the need to complicate one simple and frequently used function with configuration options.

tst
Knight of NI Knight of NI
Knight of NI

What would the primitive look like if I ask it to compare to -3425361?


___________________
Try to take over the world!
Darin.K
Trusted Enthusiast
I would be much more inclined to ditch the =<>0 comparisons to reduce palette weight.
RavensFan
Knight of NI

I wouldn't eliminate the =<>0 functions.  As I said they are frequently used.  The space on the palette is justtified for them.

Darren
Proven Zealot
Status changed to: Declined

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