LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Help


@James.M wrote:

The way I would do this that's pretty simple is this:

  1. Build array of 1-69
  2. Use a For loop to loop N times for how many numbers you want to pull out
  3. Pass your array to shift registers on the For loop
  4. Within the For loop, use random number (scaled to be between 0 and array size minus 1) to delete an element from the array and pass the smaller array back to the shift register
  5. Output the deleted elements from each loop of the array and you have your lotterty numbers.

It is easy than that

Capture.PNG

Now, explain that to your instructor and earn the  A


"Should be" isn't "Is" -Jay
0 Kudos
Message 11 of 30
(1,744 Views)

Riffled. That's something new!

I'm not sure if you meant to make a mistake in the code or not.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 12 of 30
(1,785 Views)

Apparently Bill is doing a great job of helping students do thier own homework!   

 

For those of you that did the "College" thing--- when should I avoid doing homework?  Yup- March == Spring break and handing in assignments studii should have been working on before they partied.

 

Thanks RF

 

@ James- Riffled is not new---- It is no longer biased!  Search for "riffle is biased"


"Should be" isn't "Is" -Jay
Message 13 of 30
(1,766 Views)

How did you get that thing in the middle?

0 Kudos
Message 14 of 30
(1,693 Views)

So here is my second attempt to post my VI. So Im trying to figure out what to do next. I need to create a lottery generator simulator. Numbers must be betwen 1-69 and they cannot repeat. 

I took a screen shot of the VI just in case it's blank again.

0 Kudos
Message 15 of 30
(1,665 Views)

Hi Solrac,

 

ctrl-space, then type "Riffle"…

(In the German LabVIEW version it's called "Mischen".)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 16 of 30
(1,679 Views)

Can you tell me what a riffle does so i know how to explain it to my teacher.

0 Kudos
Message 17 of 30
(1,676 Views)

Also how do you get that last part?

0 Kudos
Message 18 of 30
(1,668 Views)
Solrac, this information is an easy Google search away. I will admit with this one that Riffle has pretty bad LabVIEW help information. It uses the word Riffle to describe Riffle.vi.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 19 of 30
(1,664 Views)

@Solrac_0 wrote:

Can you tell me what a riffle does so i know how to explain it to my teacher.


Riffle takes an array of numbers and randomly rearranges them.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 20 of 30
(1,657 Views)