LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Help

Screenshot 2024-01-11 at 5.31.10 PM.png

 any help would be greatly appreciated I am new to lab view and have no idea where to begin  

0 Kudos
Message 1 of 3
(420 Views)

You need to create 2 random numbers between 1-100, add them together and if it's an Even result, Player 1 wins, else Player 2 does.

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 3
(343 Views)

@joecat23 wrote:

 

 any help would be greatly appreciated I am new to lab view and have no idea where to begin  


  • Start with opening LabVIEW and place all mentioned controls/indicators on the front panel. Label them correctly and set the correct datatypes (e.g. Integers for the random number and sum display).
  • Now go to the diagram and implement the logic.
  • How would you create fair random numbers in a define range (fair is important. If the code is sloppy, edge values (1, 100) might only occur ant half the probability of the others.
  • How would you test if a number is odd or even? There are easy and harder ways. Think of the least significant bit!
  • For step 2 you need to repeat the code 10x and you know that number from the beginning. What kind of loop would be most appropriate?

See how far you get and post your attempt once you get stuck. If this is very difficult for you, maybe this course is not for you.

 

0 Kudos
Message 3 of 3
(338 Views)