LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview random generator leds

Hey Labview users,

I'm a novice with labview and i have to solve the next exercise. Create a random generator 10 which generates random numbers between 0 and 100.
Provide between 2 numbers generated a delay of 1s.
Provide also 3 LEDs that light up as follows:
- Red LED: 70 <random number
- Green LED: 30 <random number <70
- Orange LED: random number <30
Only when the 10 random numbers are generated, enter this  1 dimensional, profiled collection (1D array).

Can anybody show me the block diagram

 

Can somebody help me please ? It's quite urgent.(i have untill saterday 26/1)

Any solution is welcome !

0 Kudos
Message 1 of 5
(3,553 Views)

This is not a place to have your homework done for you. Between now and tomorrow, you should have time to complete the three hour or six hour course. If you get stuck with something, you need to post the code you have done and a detailed explanation of what the problem is.

Message 2 of 5
(3,551 Views)

Well, if you have to have this done, you hade better get on with it.

 

A couple hints:

 

  1. The random number generator built into LV puts out a DBL float value between 0 and 1.
  2. You can use the threshold function to determine which of the three LEDs should be on.
  3. You know ahead of time that the VI needs to loop 10 times, so you can use a for loop.
  4. There is a wait function in LV that you can use to generate the 1 sec delay.

Beyond this, we will not write your homework for you. We don't need your degree, we have degrees of our own.

 

Post code and we will help you by answering specific questions.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

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

For help with grief and grieving.
Message 3 of 5
(3,545 Views)

Another helpful hint is to use the search button on the palette.  When I was just starting out, I used it all the time.  The LabVIEW VIs are usually very aptly named, so if you start typing what it is you want to do, you can usually find a match...

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.
Message 4 of 5
(3,508 Views)

Hello,

 

Did you manage to create the VI?

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 5 of 5
(3,473 Views)