LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

random number generation with LabVIEW FPGA

Hello,
 
I would like to implement some random number generation in LabVIEW FPGA. In fact, I need to generate a PWM signal with a fixed duty-cycle but with a frequency randomly varying for each period of my signal between 18kHz and 22kHz.
That's why I would like to generate a random number on the FPGA, and use it to calculate my random frequency.
Did someone already do something like that ? Is some algorithm (like the Random Number function for LabVIEW Windows) already exísting ?
Thanks in advance for the help,
 
Laurent
 
 
 
Message 1 of 3
(4,486 Views)
Hi Laurent,

Check out this DevZone article:
http://zone.ni.com/devzone/cda/epd/p/id/1740
You should be able to extract the Uniform generator out of there pretty easily.

-Jim
Message 2 of 3
(4,468 Views)

Thank you Jim, this what I was looking for !

Laurent

0 Kudos
Message 3 of 3
(4,426 Views)