12-17-2018 01:00 AM
Hello Everyone,
Im Generating the white Guassain Noise with Standard Deviation of 3.2 and after that I'm applying a 1st Order Filter for which it should decay 6dB per Octave after 5KHz,and plotting the PSD waveform,with the Sampling Frequency=100KHz and Number of Samples=100KHz(which provides me for 1sec) when I Run vi it works properly. I want to Generate it for a minimum of 1min so I have Changed the Number of Samples=6000KHz but when I run vi for this values the vi hangs for a 2 to 3 sec and PSD will plot but the vi still hangs(stuck) and unable to execute again and I have to close the whole vi to bring to its normal position, so what is the problem..??
Thanks In Advance
I have attached my vi below
12-17-2018 01:13 AM
"Things are not very clear, for example a unit of kHz for the "number of samples" seems wrong.
Generating 1 minute worth of data at 6Mhz (=6000kHz) requires massive amounts of memory (~3GB for one copy, 6MB x 60seconds x 8bytes per DBL) and your VI requires multiple copies.
Seems unreasonable. Check your math. (Are you running LabVIEW 64bit?)
12-17-2018 03:06 AM
Hello Sir,
I'm using LabVIEW 2018 evaluation Mode. my system is Windows 10 pro 64bit.
So You mean to say that we cannot generate that amount of Samples..??
And Number of Samples is used determine the Time Duration for the Noise Signal
12-17-2018 03:15 AM
Hello Sir,
The thing is Sampling Frequency(Fs) = 100KHz, so I want to generate a Noise for 1 minute
12-17-2018 08:01 AM
100,000 samples/second * 60 seconds * 8 bytes/sample = 48,000,000 samples. a large (but tractable) number. By generating the samples using 100,000 samples/generation, you will get 60 waveforms, which you can either combine into a monster Waveform of 6M entries or run your filter in "sequential mode" (where you provide "chunks" of data and take advantage of most Filter VIs having "Initial/Continued" settings).
Note that you could also generate the Waveform "all at once" either by specifying a sampling rate of 100kHz and a sampling time of 60 seconds = 48M samples, or specifying a rate of 60*100kHz = 6MHz and a sampling time of 1 second = 48M samples. You don't want to do both ...
Bob Schor
12-17-2018 09:55 PM
Hello Sir,
Even I tried by giving True to the Init/Continue Terminal of Filter block but it still Hang
12-18-2018 12:07 AM
How much RAM your computer have?
Benoit
12-18-2018 12:08 AM
Hello Sir,
8GB RAM
12-18-2018 12:13 AM
I am able to run your VI with a sampling frequency of 100'000 and with 6M samples and amplitude of 1.
It hang for a while, but for the rest everything is fine.
You should revise your architecture so only the interesting part of the graph is displayed or only 10% of the point is shown and then you zoom in and display more point in the region you want to see.
Benoit
12-18-2018 12:17 AM
Hello Sir,
But when I run vi it hang for a while and display occurs but after that when I tries to use that vi again it still hang and I need to close the vi and open again but why is like that...??