ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with comparison

Solved!
Go to solution

I'm new to LabVIEW and am currently trying to make a VI where is need to compare two things and if one item is true do something and if the item is false do another thing. In my case if the value 1 is greater than value 2 then i need to take the difference between them and display that number. If value 1 is less than value 2 then I need to light up a boolean LED.

 

Hopefully someone can help me out. I tried working with the case structures but couldn't get it to work.

 

Thanks!

0 Kudos
Message 1 of 6
(3,594 Views)

This is a very basic use of LabVIEW. Have you had a look over the introductory manterial online or in the help file?

Perhaps if you post your code we can give you some ideas as to how to proceed.

0 Kudos
Message 2 of 6
(3,586 Views)
Solution
Accepted by steggets

Check this

 

Num Diff.png

Munna
0 Kudos
Message 3 of 6
(3,579 Views)

Sounds like you just did his homework for him.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 6
(3,533 Views)
Thanks! In the false case what is the NaN box?
0 Kudos
Message 5 of 6
(3,505 Views)

Hi steggets,

 

that's a numeric constant set to NaN

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(3,501 Views)