Gaussian White Noise - Seed

Hi everybody,
I want to call the "Gaussian White Noise.vi" several times (lets say, in a loop) and thereby, I want to fully control the state of the random generator which is used in the VI.
I think, that the "seed" input somehow determines the state of internal random generator (which is unfortunately "hidden" in a DLL).
So, what I would like to have is an output parameter that returns the last state of the random generator .
The idea is, that I can call the VI several times setting the "seed" input parameter equal to the state of the random generator of the last call. By this, I could get a reproducible stream of random numbers by simply setting the "seed" input parameter of the first call to a user defined value.
I hope, I was able to explain my wishes.
Thanks for all replies
Stefan

Hi Kevin,
thanks for your good idea. This works fine.
If a guy from NI reads this message: It would be helpful anyway, if the state of the random generator would be returned by the VI "Gaussian White Noise.vi". Think about an extensive simulation with a many iterations and after a certain time, an interesting result occurs. If one wants to reinvestigate this interesting result, one has the re-run the complete simulation until one gets to the time instant where the result occurs. If the state of the random generator would be availabe, one could save this state in each iteration and re-running the complete simulation would not be neccessary anymore. One would reload the state of the generator for the interesting iteration and would have to re-run a singe iteration. Would be much faster.
Thanks again
Stefan

Similar Messages

  • How to add gaussian white noise to array of one's and negative one's ?

    how to add gaussian white noise to array of one's and negative one's ?
    Solved!
    Go to Solution.

    Is it this that your are trying to accomplish:
    TO:
    Here's the code to do that.
    Michel

  • How Do I generate a Filtered gaussian white noise

    Can someone please help me on how I can generate filtered gaussian white noise in LabVIEW.

    Actually in the moment you specify a sample rate for your Gaussian white noise data you apply a filter equal to F_sample/2. But anyway If you want to have 10 seconds with white noise sampled with Y Hz in sample frequency. Then you create an white noise array, with 10xY samples or elements. Then you apply your filter 
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Histogram of Gaussian White Noise with NI5112

    I am digitizing some random gaussian white noise with a NI-PXI 5112. The problem is that even with very high number of samples (1 Mega sample) the distribution presents a lot of periodic pikes when making a voltage histogram (either with built in function or by postprocessing data with Mathematica).
    I am using two synchronized digitizers and they both have the same behaviour (pikes symmetric around 0 and with periodicity), but give different response from one another.
    I already tried to filter the data, change the vertical range of both aquisition and generation devices, but the pikes always appear at the same relative values, and with the same relative number of counts.
    How can I overcome this problem ?

    Could you post a screenshot of your histogram? How many bins do you have in your histogram?
    Remember that the 5112 is an 8-bit boards so you only have (in the order of) 256 possible values so unless you 'hit' the exact values your bins will have un-equal weights. This could result in the periodic behavior you are observing.

  • Adding white noise to signal

    Hi,
    I am trying to figure out how to allow a user to add white noise to a signal, the idea is that the user would enter the noise ratio in db which I would then apply to a signal measurement before displaying it. I looked at the add gaussian white noise vis in LV but I am not sure how to go from the noise ratio that the user enters to the seed and standard deviation inputs for the function.
    I tried to look online but all I found was ways to add noise based on amplitude, is there a way to convert from the db ratio to amplitude given that I do not know the amplitude information of my original signal before hand since it is being sampled in real-time.  Any information about this would be greatly appriciated i realize that I might be mis-understanding the way signal/noise processing really works.
    Thank you,

    dB is a dimensionless relative measure, you need a reference intensity in order to calculate it
    Often times in electronics you see things referenced to 1 mW,  called dBm = 10 log10(P / 1mW), so P = 10^(dBm/20)
    http://en.wikipedia.org/wiki/DBm 
    For sound dB SPL = 20 log10(I / I0), I (intensity) is usually expressed  Pascalls  I0 is nearly always referencec to human hearing threshold, which is 2 * 10^-5 Pa.   Multiply by your mic gain to convert to from pressure to volts.

  • Uniform White Noise vi parameters

    Hi
    What is meant by seed in the Uniform White Noise vi. in labview. What is the effect of sample rate and nuber of samples on the noise waveform and the output power?
    Thanks
    Mal

    malkoba wrote:
    Hi
    What is meant by seed in the Uniform White Noise vi. in labview. What is the effect of sample rate and nuber of samples on the noise waveform and the output power?
    Thanks
    Mal
    The seed is a number sent to the Pseudorandom noise algorithm to start its sequence. If left blank a "random" number is generated and sent to start the prn generator. On subsequent calls to the Uniform White Noise Generator it continues the previous sequence (it is pseudorandom after all). I'm not seeing a sample rate on my version (7.1) only sample number. The default for sample number is 128, which is a power of two, something that FFT's etc. are happier with than non powers of two. As far as the effect on the noise waveform, it just defines the length up to max memory or 2^31-1. What do you mean output power? For white noise you would have to define a bandwidth in which you were measuring the noise and then average over a long time. Try putting together a simple experiment and seeing what effects changing the values has. You don't have the base package, if you have the Uniform White Noise vi, so you probably have the Power spectrum vi, etc. Wire the UWN into a power spectrum, then drop a waveform graph on the front panel and look at the resulting spectra.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • I have some dts cd's that I want to import into itunes on a windows pc and then play back on my apple tv 3 (i think its 3, about 9 months old) to listen to through my onkyo amp via hdmi as dts, when I play back I just get white noise.

    I have some dts cd's that I want to import into itunes on a windows pc and then play back on my apple tv 3 (i think its 3, about 9 months old) to listen to through my onkyo amp via hdmi as dts, when I play back I just get white noise. I have seen lots of old posts which go on about converting files but am wondering wherher at the current time with the latest versions of itunes and apple tv whether this should by now be a virtual play out of the box solution.
    I have tried connecting my atv to the amp by optical cable but that didnt produce anything better and am assuming that a hdmi cable should be able to reproduce everything an optical cable does.
    Is this something I should be able to achieve without having to recode the files?
    Tracks are imported to itunes as apple lossless, have tried setting the atv audio settings to auto and 16 bit, neither works yet I was told some time ago by an apple rep that the atv shoud be able to handle any type of audio as it just passes it to the amp to decode. I am not stupid but not that technical when it comes to audio and bitrates etc so any explaination would be appreciated.
    Thanks in advance for any help

    Willy, the procdedure you describe works perfectly for AppleTV G1. In fact, I frequently play DTS music discs ripped to my iTunes library as Apple Lossless (ALAC) and synched to the ATV. What happens is that, as far as iTunes and the ATV are concerned, a conventional stereo 16/44 audio file is being played; however my reciever detects the DTS data stream, and instead of outputting static, it decodes the 5.1 channels correctly. This process parallels the way DTS discs were designed to be played back: a conventional CD player is connceted, via digital out, to a DTS-aware reciever/pre-amp and the two channels of static are recognized as 6 channels of DTS-encoded audio.
    However this process will only work if the player (CD, ATV, PC, etc.) sends a "bit-perfect" 16 bit/44.1 khz data stream to the decoding device. In the case of ATV G2 and G3, as has been discussed elsewhere, the unit resmaples all audio - including 16/44 PCM (Redbook CD)  - to 16/48. While this is not a big deal for conventional audio CDs, MP3s, and AAC files, it mangles the fragile DTS datastream and renders it undecodable. The resulting static that you hear is just like the static you would hear if you played a DTS CD on a non-DTS capable system.
    Sadly, I'm not aware of any easy way around this. You could use a program like Foobar (and the DTS plugin) to convert your DTS CDs to 6-ch .wav or .flac file. From there you could transcode the file to AC-3 and then mux it into a video container that ATV supports. You may need add a dummy video track, for iTunes/AppleTV to be ok with the file, though I'm not sure. This may be a lot of work.
    Sorry for the bad news. I wish that the iTunes/ATV ecosystem had better multi-channel audio support.
    Steven

  • MBP 17" report, occasional white noise from right speaker

    My 2.16Ghz MBP with 100GB 7200rpm drive and 1GB memory arrived a few days ago. Since then I have been installing software, running apps, and generally putting it through it's paces. I have also added a 1GB stick from Crucial. On the whole the MBP has been great, except for a few (hopefully minor) problems:
    1. It gets quite warm on the left palmrest, and gets uncomfortably hot between the keyboard and the screen. This is just during casual use, web surfing, downloading updates etc. The case temperature is about the same as my old 667MHz TiBook after it had been at 100% CPU for several hours (encoding video). I dread to think how hot the MBP will get doing something demanding.
    2. When closed the screen appears to be slightly bent, the gap at the two front corners is about 1mm wider than the gap at the latches.
    3. I have started to get hard crashes during the boot up sequence. Specifically after the grey apple I get the greyed-out multi-language reboot message and have to reboot. If I continue trying to reboot it eventually manages to get past the grey apple and boot up normally (usually this takes 2 or 3 attempts). I suspect this is due to something I've installed, possibly some Canon software for my MP750 printer.
    4. I have now heard a white noise/static sound coming from the right speaker on 5 occasions. Three of those occasions were while booting (one of them was when I first turned the MBP on! Not a good sign). The computer boots normally, but with this strange noise! The other two times where when I was launching apps. On each occasion the noise lasted about 3-5 seconds before stopping. It's more of a hissing noise, not a mooing or a whining noise. It sounds exactly like the speakers on a vinyl record player when the needle is in between songs.
    Obviously all of the issue are annoying. However I'm only REALLY concerned about item 4. Item 1 was kind of expected after doing some pre-purchase research. Item 2 is annoying in a £1800 laptop, but I can reluctantly live with it. Item 3 is frustrating but I'm sure I can 'cure' it by removing software (it only started happening after a day or two of fairly heavy use). Item 4, on the other hand, is intolerable
    Anyone have any suggestions? Advice appreciated. The nearest Apple store is about an hour away, so advice other than "take it to a Mac 'genius'" would be appreciated.
    17" MacBook Pro 2.16GHz Mac OS X (10.4.6) 2GB RAM

    Well, that was 15 minutes of life wasted typing out the above post that I'll never get back
    I was hoping for some sort of 'expert' advice from all the users here with thousands of posts. Evidently not.
    Anyway ... I have (kind of) fixed the problem myself. Resetting the power management unit almost completely solves the static noise problem. I say almost, because since resetting the PMU (about 2 weeks ago now) I have heard the static noise ONCE. This is compared to hearing it around 3 or 4 times a day prior to the PMU reset.
    This at least makes me slightly more confident that this is a software/firmware glitch, rather than a hardware fault.
    Hope this helps someone.

  • White noise, sort of packet loss when talking with...

    Hi,
    For some unknown reason when I talk with one specific person the call doesn't exactly drop out it sort of cuts the audio and gives me white noise (sort of like when you get packet loss when transferring files or gaming), I have 0 idea why it does it. Does it the reverse as well, but only for me and this person. Everyone else thats in the call doesn't get effected and its frustrating me.

    When in a call goto call > Technical info. This will show you various info about the call connection (and a lot of useless info aswell). Amongst the info is packet loss, and relays (if relays = more than 0 you are not directly connected).
    Being on the same Skype, version might help.

  • How do I get rid of the white noise that plays over my music?

    Hey.
    I got 5 CDs today and I wanted to upload them onto my iTunes to put on my iPod. But when I put in 4 of the CDs I got white noise over the top of the music making it unlistenable. But the 5th album(Double CD) worked perfectly fine. I know the problem isn't the CDs because I played them through my PS3 and they were absolutly fine. If anyone can help. Its greatly appreciated.  
    Thank you.
    - DowellG8

    Go to Edit > Preferences > General > Import Settings and check the box for error correction, and then try one of the problem CDs again.

  • White Noise showing up in images after PDF Creation

    I am currently running into an issue making PDFs from InDesign CS4. Lately, our company has been getting some rather large jobs in to print and that's when this all started.
    The current job is 190 pages plus cover that will be perfect bound. The client, nor I can make one large PDF from this job so we have to break it up into sections. Usually each of the PDF sections has around 20-50 pages per.
    Now the issue we're running into is that on some of the pages, an image will end up with a bar or lines in it that looks like white noise. Like the image information was lost for a short period of time during the PDF creation from InDesign.
    Here are two pictures of pages from separate jobs and a close up on what's going on. **Second image was from a 32 page plus cover document we have already printed.
    Now in order for me to fix this issue is to just make a single page PDF of the effected pages in the document. I just wish I knew what was causing this issue so I know how to avoid it in the future. So far four jobs have been affected like this; two 32 page + cover jobs, a 64 page + cover job, and is job.
    We use a Rampage Workflow system here. My PDF settings in InDesign CS4 has all compression turned off, no profiles or color conversion turned on. I keep compression turned off because it seems sometimes, vector art done in Illustrator does not seem to come out looking well when RIP'd in Rampage.
    My main computer is a 2.8 GHz Intel Core 2 Duo iMac with 4 BG of memory running Mac OS X 10.5.8.
    My current version of InDesign CS4 is 6.0.3.  If anyone has run into this problem or if anyone has any helpful hints for me, I could really use them please. If you need more information from me, I'll be happy to answer any questions.
    Thanks for all the help!
    Roc

    That one has come up every now and then and has always been hardware as far as I know....  bad ram, bad cable, bad drive, bad network maybe even bad video card (?). 
    I see that the lines in the rotated pic are parallel with that pic, so maybe look at the machine where that pic was made and placed first, this is not definite, but you can get corruption in tiffs on machines with hardware errors and they may not be visible every time you open the file.
    Although probably a bigger clue is the fact that doing singles is working better, that would make me change the ram completely, suspecting a bad module.  Also, unplug peripheral devices and see if that has any bearing.

  • "White Noise" at Start up

    Whyen I power on my imac, the screen is white and then the tiny apply appears with a progress bar circling around it. Then, the screenturns into "white noise" similar to what a TV loos like when the cable isn't working. Any ideas?

    no noise at all. the screen starts going crazy. sometime lots of verticle lines that are very close together and pulsating. I just restated again and this time the verticle lines pulstaed for a minute and now the screen is grey design with a yellow verticle band going up and down in the middle of the screen and a pink band on the left side of the screen.
    when I hold down the option button at start up, I get a picture of the hard drive icon on the screen with an arrow pointig towards it. it looks normal. when i click the arrow, the apple appears, then the circularl progress bar...and then the screen back to freaking out.

  • White Noise / Popping Problems

    Hi,
    This question is more about microphone equipment than GB2.
    I have a Sure SM58 microphone -- am going to be recording an audiobook. I need to get some sort of pop screen (to help keep the "P's" fromm sounding so puffy) ... do I need to buy a proper "pop screen" or can I just get one of those wind screens that cover the mic head (cheaper) ?
    Also, my G5 makes quite a bit of noise -- I think part of it is contributing to the background "white noise" of my recordings ... I have read that a windscreen sometimes help.
    Should I get both a windscreen and a pop screen? And: any other suggestions on how to reduce the "white noise" (without building a seperate room for my mics)?
    Thanks,
    Damon

    I couldn't underscore enough how important a defuser (pop screen) is. If money is tight, a very cheap thing to try is pulling a pair of pantyhose or stockings over a coathanger.
    As for the white noise, a wind screen isn't likely to help (if it did, it would be cutting off all the high frequencies of everything).
    The first thing to try is to get the mic as far away from the machine as possible, keep the gain on the mic as low as you can, and stay close to the mic (again the defuser is rather important for this)
    One other thing you might try is looking in your Energy Saver preferences and try setting the speed of your processor to "reduced", this may bring the fan noises down quite a bit, and once you've recorded your part you can reset the preference to Highest or Automatic)
    Hope that helps --HangTime [Will Compute for Food] B-)>

  • September 2011 MacBookAir4,2 1.7 GHz White noise even when sound turned off

    Since new this MacAir has had a white noise like a tv not tuned in even when sound is off. Gets worse as it gets warmer. Seems to be getting worse then ever.(summer). Usually connected to a Thunderbolt Display and makes noise only when display is attached. Disconnect the display and the noise goes quite after a few minutes till display is again attached.
    Mountain Lion OS X 10.8.2 (12C60)
    I think it is the Cooling Fans making the noise and the Thunderbolt connector gets hot after a few minutes.
    Rom Ver MBA41.0077.B0F
    Regards
    Barry

    Hello and Welcome to Apple Discussions.
    Try checking the hard disk for errors just in case.
    Open Disk Utility, in the Utilities folder in the Applications folder.
    Insert your Mac OS X Install disc in your computer’s optical drive or an optical drive connected to your computer, and then restart your computer. When you hear the startup tone, hold down the C key until you see the progress indicator, which looks like a spinning gear.
    Follow the onscreen instructions until the menu bar appears with the Utilities menu in it, choose Utilities > Disk Utility, click First Aid, and then click Verify. Of Disk Utility reports errors, click Repair. When it's finished, from the Menu Bar, select Utilities/Startup Disk. In the Startup Disk window select MacintoshHD 10.x.x and click Restart.
    Also, while you have Disk Utility open, Repair Disk Permissions, reboot and see if the sound anomaly still exists.
    Carolyn

  • Why is the video audio white noise when I share my project since I updated to 10.0.9

    On the movies I created before I updated to 10.0.9, the audio prortion of the video is now white noise. The audio is fine when played back in FCP, but when i share the project it is white noise. When I burn it to BluRay the audio is gone all together. Even when I make a master file to my desktop, it still happens. The music I added to my project is fine. It just the audio that is part of the video clips that is affected. I've turned off the EQ's and Compressors I was using and I even tried moving the audio to the center channel instead of mono. No luck. Need some help. I can't figure this out.

    I'm encountering the same problem as the original poster.  In my case, I'm using FCP 10.1 (running on OS 10.9.1).  My source file is DV video imported via FireWire from a DV camcorder.  The clip's audio is fine when playing inside of Final Cut Pro 10.1, but when I share the project the audio track is just white noise.  My share settings are to Apple 720p devices (the subseqent dialog boxes indicate the software has figured out it's really 640x480 video).
    Here's what the QuickTime Inspector says about the source file:
    Format:
    DV/DVCPRO - NTSC, 720 x 480 (640 x 480)
    Linear PCM, 16-bit little-endian signed integer, 48004.6 Hz, Mono
    Linear PCM, 16-bit little-endian signed integer, 48004.6 Hz, Mono
    FPS:  29.97
    Data Size:  5.87 GB
    Data Rate:  30.30 Mbit/s
    Current Size:  640-480 (actual)
    I tried changing from "faster encode" to "better quality", but it made no difference.
    The rather dated version of Compressor I have (v3.5.3) was able to encode the clip to H.264 640x480 and the results are fine.  However, it took way longer than FCP 10.1 (I think it's too old to be taking advantage of the GPU).

Maybe you are looking for