LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

comparison between two inputs

Solved!
Go to solution

Hi,

I am an absolut beginner to LabView and I learned the tutorials of LV but I have a question and need your help.

 

I have two numeric inputs and one numeric output and I want to output for example the bigger number from the inputs. What I need is how can i compare two input and decide for one of them.

When i use a comparison operator like greater, smaller or equal I get a boolean result but not a numeric. How can I use this to get e.g. the bigger or smaller one?

 

Thank you

Oliver

0 Kudos
Message 1 of 9
(2,495 Views)
Solution
Accepted by topic author OZI

You can e.g. use your Greater to decide which is in fact greater and then select that one through a Case structure or a Select which'll send the bigger one forward.

That functionality is already bundled in the Min/Max function, check it out.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 2 of 9
(2,493 Views)

Hi,

great the Select was what I searched. Also the Maxmin worked for my app.

 

Thanks a lot

 

greetings

Oliver

0 Kudos
Message 3 of 9
(2,478 Views)

Rather than mark your thank you post as the solution why not mark the actual post which provided it. Please give credit where credit is due.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 9
(2,471 Views)

Hi Mark,

what is wrong I don't understand your post.

 

did I do something wrong?

 

greetings

Oliver

0 Kudos
Message 5 of 9
(2,459 Views)

You marked your post which was thanking the person who gave you the solution as the solution. You should mark their post. After all, it is the solution.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 6 of 9
(2,452 Views)

sorry that was a mistake from me. Thanks for your post

 

greetings

Oliver

0 Kudos
Message 7 of 9
(2,448 Views)

To correct your mistake go to the post that you selected as the solution and click the options on the top right hand side. Then select the post that best answered your question.

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 8 of 9
(2,440 Views)

OK, done

0 Kudos
Message 9 of 9
(2,425 Views)