LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview

 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).

0 Kudos
Message 1 of 9
(1,658 Views)

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 9
(1,638 Views)

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":

 

Random Number Generator.png

 

Attached is the VI to open with LabVIEW 2020:

Message 3 of 9
(1,623 Views)

@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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 9
(1,616 Views)

@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).

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 5 of 9
(1,606 Views)

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. 

0 Kudos
Message 6 of 9
(1,562 Views)

yes im agronomist and i currently do my master degree i have a course in LabView and im completely noob thanks 

0 Kudos
Message 7 of 9
(1,552 Views)

@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. 😄

0 Kudos
Message 8 of 9
(1,550 Views)

Here is  a link from my first attempt to search the LabVIEW board for "Random Number."  Did you try searching?


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 9
(1,479 Views)