07-02-2009 07:10 AM
Hello.. i have made such a simple Vi file..
all it need to do is to sample one channel in high rate, and im trying to sample as much as samples as i can for accurate measurment.
the thing is that this prgram needs to detect flicker noise on amplifiers... and i got the feeling the program crash after few samples and i got no idea y.
is there something i need to configure? maybe the clock on the while loop?
please help.. we are trying for a very long time
iv attached the vi file
07-02-2009 08:34 AM
What is the "crash" you are talking about? I'd asume that it is a buffer overflow (samples have been overwritten).
Your setup (at least from the default values) requires a looptiming of 10Hz. But you set the looptiming to 1s, so within a few seconds, your buffer will be full.
Just remove the wait time... if your analysis takes only few ms, the DAQmx Read will wait for samples without creating much CPU load...
hope this helps,
Norbert
07-02-2009 03:26 PM
The "crash" im talking about is... where i see the samples on the time domain.. and then suddenly - they are gone.. so the PSD immediatly drops to close to zero results....
i think that the program sample nothing..
if i understood you right.. i need to remove the "Wait"..
ok... ill do that..
what about high resolution?..
is it possible to sampe at 200kHz and make 100k samples?
thx
07-03-2009 01:50 AM
Eldad wrote:is it possible to sampe at 200kHz and make 100k samples?
The sample rate depends on the hardware you are using. Please refer to the specification of the device.
The number of samples (100k) is possible, but will take some memory, so this is rather slow in the analysis. So this mainly depends on the system you are working on, CPU and RAM as well as parallel running applications....
hope this helps,
Norbert