LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write a program to find smallest of the three numbers

Can anyone help me solve these problems in vi , I'm new to LabVIEW, these are 10 questions if anyone knows solve and help me , as I'm new to vi community, I can post only twice so , u can post solution here ,  please do help , I have to submit solutions in 3 hrs, 

0 Kudos
Message 1 of 7
(1,842 Views)

Start with the learning resources listed at the top of the forum. Show us what you tried and we will point you in the right direction.

How would you do it in any other programming language?

 

 

Your subject only talks about problem one (of 10). Did you solve the others? How should the UI look like and how does the user enter the tree numbers? (three numeric controls? An array with three elements? A cluster of three controls? etc.)

 

Remember: This forum is not a service to do homework for you.

0 Kudos
Message 2 of 7
(1,830 Views)

Im not getting correct output for decimal to binary please help

And I'm unable to attach my block diagram pic 

0 Kudos
Message 3 of 7
(1,797 Views)

@Priya475 wrote:

Im not getting correct output for decimal to binary please help

And I'm unable to attach my block diagram pic 


What happens if you try to attach your VI or embed an image?

 

The subject of this thread is to find the smallest number, but now you are talking about a completely different problem.

 

Maybe you should discuss it with one of your classmates.

 

Can you explain what you are doing? Since we are dealing exclusively with integers, make sure there is no trace of orange anywhere on the diagram.

 

You have not even explained what "decimal" or "binary", is, e.g. the datatypes and such. Are both strings, one exclusively containing the characters 0..9 and the other 0..1? Something else?

0 Kudos
Message 4 of 7
(1,780 Views)

Have you even written (and tried to execute) a VI (= Virtual Instrument, the name we give to LabVIEW programs that have the extension ".vi")?  If so, you can go to the Forum and look below where you are typing where it says "Drag and drop here or browse files to attach" and attach your VI.  Since you are a new LabVIEW student, you are probably using LabVIEW 2023, which I won't be able to open (as I'm using LabVIEW 2019), but many other LabVIEW experts will be able to see it and help you with the concepts (you'll still have to do your own work, or "copy from your classmates").

 

Have you gone to your classes?  Have you looked at the "Learning Material" mentioned on the first page of this Forum?

 

Bob Schor

0 Kudos
Message 5 of 7
(1,760 Views)

Hi Priya,

 


@Priya475 wrote:

Write a program to find smallest of the three numbers


 

y = min( a, min(b, c) )

I guess you figured it out on your own as you only had 3 hours left to solve your homework…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(1,711 Views)

@GerdW wrote:

 

y = min( a, min(b, c) )

I guess you figured it out on your own as you only had 3 hours left to solve your homework…

 


This only gives the "value" of the smallest number, it does not say which of the three inputs is smallest (a, b, or c, or even abc if all have the same value, etc.). Interpreted literally, "find the smallest of three numbers" does not even ask for the value. 😄

0 Kudos
Message 7 of 7
(1,677 Views)