LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

if number 1 is (<,>,=) to number 2 display (greater than), (Less than), (equal)

Im not sure how to wire this. Help please. 

0 Kudos
Message 1 of 12
(7,489 Views)

Maybe one of your classmates can help you?  You need to show your work here.  What have you tried?  What doesn't work?

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 2 of 12
(7,480 Views)

It's right there on the Comparison palette. You get two inputs and one output, all you could need.

 

The LabVIEW help file is your friend, get to know it well, please.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 3 of 12
(7,478 Views)

This is not the answer, but it's an answer.  😄

 

Example_VI.png

 

Post the VI you're writing and we'll help you learn what you need to write a proper solution (mine is slightly obfuscated).

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 12
(7,469 Views)

Here is what I have so far and here is the assignment. I need a if else type function for my idea to work. Disregard anything that doesn't have to do with labView in the assignment. 

 

Download All
0 Kudos
Message 5 of 12
(7,466 Views)

You need to make the comparisons before the case structure and then select the correct case accordingly.

0 Kudos
Message 6 of 12
(7,449 Views)

Open LabVIEW.

 

From the tabs on top, choose "File" -> "New VI"

 

From the tabs on top of the new VI, choose "Help" -> "LabVIEW Help..."

 

OR, (takes longer, but will be worth it sooner)

 

Do the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 7 of 12
(7,445 Views)
  • Move the random number generations outside of the While loop or you'll forever be chasing it
  • The problem statement says to use integers, so convert the random number and change the representation of the controls
  • Learn how to use a range in the Case structure

PA_3_2_1_k_BD.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 8 of 12
(7,439 Views)

You only need to make two comparisons. The rest is redundant.

 

0 Kudos
Message 9 of 12
(7,419 Views)

Slightly obfuscated, Jim? Slightly? Smiley Very Happy

 

It does however point in the direction of an interesting solution to the original problem.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 10 of 12
(7,354 Views)