LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does Labview have a Random Number Generator for U16 with a periodicity greater than 64 Million instances of U16words and one with SEED as the connector?

We are doing some testing that requires 64MegaWords be written to our DSP memory  with random values to do a validity check and without repeating sequences with using the previous value as the seed for the next and us passing it the initial seed.  The dice one doesn't meet that criteria, and I was not sure how the continuous random number generator parameters work and if any of them would meet this criteria. Anyone have any information that might help?
 
Thanks,
Sue
0 Kudos
Message 1 of 5
(3,893 Views)

Hi Sue,

This is the only built-in LabVIEW function that generates a random number. You can create your own function or you can use a function in a another programming language, put it in a dll, that uses the C or stdcall (WINAPI) calling conventions. Then you can call that dll from LabVIEW.

Hope this helps! 

 

Kalin T.
0 Kudos
Message 2 of 5
(3,862 Views)
Hi suem,

There is no reason why you couldn't simply write a pseudo-random number generator by yourself. Simply select a random number algorithm you want to use and implement it in LabVIEW. You do not need to interface code written in another language in order to implement a pseudorandom number generator. If you have a DAQ card or something, you can also use inputr noise or some other hardware soruce to generate real random numbers. For that also LabVIEW is an excellent tool.

Tomi
--
Tomi Maila
0 Kudos
Message 3 of 5
(3,856 Views)
You could also try the "Uniform White Noise" function with the "samples" input set to 1. The online help for that function indicates "The pseudorandom sequence produces approximately 290 samples before the pattern repeats itself".

Note: The "Uniform White Noise" function is not in the "Base" package.
0 Kudos
Message 4 of 5
(3,852 Views)
Thanks everyone for your help.  I just checked the uniform white noise function and that is exactly what the person I am helping is looking for.

Thank you again!  You guys rock!
Sue
0 Kudos
Message 5 of 5
(3,845 Views)