10-09-2022 08:54 AM
Could someone solve me this thanks
use a “Random Number Generator” inside a “While Loop” to create an array of 10 numbers (generated by the Random Number Generator).
10-09-2022 09:24 AM
This is pretty much the first assignment of many LabVIEW courses and about 5 minutes of work if you have even basic LabVIEW knowledge.
We don’t do homework assignments here, instead we want you to learn LabVIEW rather than cheating by handing in someone else’s work as your own.
Look at the tutorials linked to on the main page of the LabVIEW forum. You should be able to finish this assignment on your own after watching about the first chapter of the introductory course.
10-09-2022 10:24 AM
Hi corrupted,
You seem to be new to LabVIEW, so instead of giving you the answer straight, it woud be better to learn by yourself.
I advise you to start with the basics: https://learn.ni.com/learn/article/labview-tutorial
Here are some starting points for your problem: a "ten", a "random number generator", a "for loop" and an "array indicator":
Attached is the VI to open with LabVIEW 2020:
10-09-2022 10:31 AM - edited 10-09-2022 10:33 AM
@raphschru wrote:
Here are some starting points for your problem: a "ten", a "random number generator", a "for loop" and an "array indicator":
You just reduced the 5 minute task to 1 minute 😁. And that is without Darren Nattinger abilities. He would do this in less than 10 seconds even without your template.
10-09-2022 10:54 AM
@corrupted wrote:
Could someone solve me this thanks
use a “Random Number Generator” inside a “While Loop” to create an array of 10 numbers (generated by the Random Number Generator).
Looks like the username is giving away something (just for fun).
10-09-2022 02:30 PM - edited 10-09-2022 02:36 PM
Of course a FOR loop does not fit the requirements of having a WHILE loop, so with the given advice, the student will of course fail miserably. Not sure if that was intentional... 😄
It takes at least 10 seconds longer to write code that fits all requirements. Probably still under 60 seconds overall starting with an empty diagram. 😮
(On a side note to the OP: This is the LabVIEW forum (note the correct letter-case), so having a post with the subject "labview" is completely uninformative and redundant. Every single post here is about LabVIEW one way or another. I recommend to pick a more useful subject line for your next question. If the subject line is more interesting, more people will actually look at it.
10-09-2022 02:59 PM
yes im agronomist and i currently do my master degree i have a course in LabView and im completely noob thanks
10-09-2022 03:03 PM
@corrupted wrote:
yes im agronomist and i currently do my master degree i have a course in LabView and im completely noob thanks
Yes, the course should teach you how to do all this. Just look at your course notes. 😄
10-10-2022 07:04 AM
Here is a link from my first attempt to search the LabVIEW board for "Random Number." Did you try searching?