09-23-2013 01:13 PM
Im not sure where to start on this problem. Here is the assignment. Any help would be greatly appreciated.
09-23-2013 01:17 PM - edited 09-23-2013 01:19 PM
This tutorial is a good place to start.
[edit]
Read it, try out a few things, then post the VI you made here. Don't be afraid, we don't bite very hard.
[/edit]
09-23-2013 01:23 PM
At least you had the honesty to admit that this is homework. Typically we will not do your homework for you (we don't get the grade) but we will help with the basics.
Arrays and clusters should not be causing you problems. If they are hit Ctrl+H and start looking at the help file. There is a lot of good information there. For loops are on the structures palatte you will need three nested for loops. The Random function is on the numeric palatte Array max and min is on the array palatte.
Let us know how it comes together.
09-23-2013 02:16 PM
do a search on " random + between" and "3d array"
09-23-2013 02:32 PM
Also make sure you read the question correctly.
We are looking for random numbers between 0 and 10, not between 1 and 10 as your post title might suggest. This actually makes the problem simpler. 😉
09-23-2013 03:21 PM
I made a blog post on true random generation in labview.
That shouldn't be the hard part 😛 figuring out how to insert it into a 3d array should be.
09-23-2013 04:13 PM - edited 09-23-2013 04:36 PM
@Valarauca wrote:
I made a blog post on true random generation in labview.
That shouldn't be the hard part 😛 figuring out how to insert it into a 3d array should be.
https://decibel.ni.com/content/docs/DOC-31601
There are several problems with that VI. You should not use I64, because the random number is DBL and thus has significantly less mantissa bits and you'll get missing integers if the range is large.
The typical way to get equal probability is to round down, e.g. as follows.
09-24-2013 11:45 AM
Here is what i have so far. I have searched the array funcions but I cant think up how im going to input the random numbers into the array. As said before this is the hard part.
09-24-2013 11:49 AM
Instead of 1 For Loop creating all the numbers, think of Nested For Loops.
You have the concept of Auto-indexing established where a scalar creates a 1-D array at the output tunnel of a For Loop.. Think of what happens when you auto-index the output of a 1-D array, then 2-D array.
09-24-2013 03:47 PM - edited 09-24-2013 03:47 PM
Nested loops were previously mentioned Or, check into "Reshape Array" Keep that help on while you look through the pallates