04-09-2010 06:04 PM
I am trying to simulate data without using a DAQ device by using a random number generator and I want to be able to control the "range" of the random number generated though. On the front pannel, the user would be able to input a nominal number, and the random number generator would generate numbers within plus or minus .003 of that nominal number. The data would then be plotted on a graph. Anyone know how to do this? Or if it's even possible?
Just for information sake, the random number is supposed to look like thickness measurements, that's why I want to simulate plus and minus .003 because the data could be thinner or thicker than the nominal.
Thanks in advance!!
Solved! Go to Solution.
04-09-2010 06:13 PM
04-09-2010 07:13 PM
04-09-2010 09:08 PM - edited 04-09-2010 09:09 PM
falkpl wrote:
I always wondered why the the random number generator didnt have optional inputs like range and mean or max, min. Most of the time this is how they are used.
Hmm.................. Kudos on your "Idea exchange" post................
Oh,..... wait,,,,,,,,,,,,, you haven't idea'd it- YET.
Link to here from the LV Idea X. good_Idea
04-12-2010 09:06 PM
04-12-2010 11:13 PM - edited 04-12-2010 11:13 PM
You can create a random number with a gaussian probability profile using two equal distributed (0...1) random numbers and applying the Box Muller transform.
I wrote one many years ago, her it is. 🙂 (LabVIEW 8.0).