09-21-2017 11:11 PM
I NEED TO GENERATE RANDOM NUMBERS AT A DETERMINED FREQUENCY
WITHIN THE CONFIGURED TIME.
FOR EXAMPLE MY CONFIGURED TIME IS 30 SECONDS AND
I WANT TO GENERATE RANDOM NUMBERS EVERY 400 mS,
AND THESE RANDOM NUMBERS PUT INSIDE AN ARRAY
09-22-2017 12:42 AM
I suggest you to take some online course, you can find these here (pay special attention to shift registers, and timing):
(from Hooovahh copypaste)
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
Learn NI Training Resource Videos
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
09-22-2017 01:33 AM
Hi m,
most of the things in your VI doesn't make any sense - and seem unrelated to your problem…
FOR EXAMPLE MY CONFIGURED TIME IS 30 SECONDS AND I WANT TO GENERATE RANDOM NUMBERS EVERY 400 mS, AND THESE RANDOM NUMBERS PUT INSIDE AN ARRAY
No need to shout - or is your keyboard broken?
All you need is a Quotient&Remainder function, a FOR loop with a wait and the Random function inside. LabVIEW does the rest by autoindexing!
FOR i:= 0 to "configured time" QR delay rnd() wait(delay) NEXT
09-23-2017 01:26 PM
Ask your classmates how they handled this Homework Assignment. But don't, of course, "copy" their paper ...
09-23-2017 01:36 PM - edited 09-24-2017 10:39 AM
As a first step, please explain to me why the thread is named "PARALLEL PROCESS". Where is the parallel part?
As a second step, try sprinkle a little bit more thought into whatever you are wiring. For example, look at the two locations (A, B) in the image. There is no logic to your logic!
What do you think would happen if you remove the "select" (A), the "OR" (B), and the three boolean diagram constants and just wire across? Nothing would change! Both constructs just return the boolean input unchanged. Right?
Just plain silly!
ALSO:
09-23-2017 01:50 PM
My apologies -- I didn't notice you attached some code until I read Altenbach's post. So here are some hints:
Bob Schor
09-23-2017 02:08 PM - edited 09-23-2017 02:09 PM
You also need to properly define what you mean by a "random number".
What should the user see during the run? e.g.
...