LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is the sample rate half with the snd read waveform.vi?

Hi Guys,
 
I plan to use the PC soundcard for data acquiring with the standard LV "snd read waveform" vi. During programming  I found that the sample rate is the half of the adjusted value. For example when I set
  - the format to 8bit mono
  - the buffer size to 11025 byte
  - and the sample rate to 11025
then the operation takes 2000ms. I would expect 1sec.
 
Used system: LV7.0,  WinXP  SP2.
 
Does anybody know the reason? I have to use 44100Hz sample rate (44100 "individual" sample per secundum) in my application.
 
 
 Thanks,     
    Tomi
 
 
 
Download All
0 Kudos
Message 1 of 4
(2,263 Views)
To be more precise, that's the time take for the below mentioned finite cycle
 
SI config>> SI start>> SI read >> SI clear.
 
Its this 'entire' process which takes 1997 milli Sec
 
Now, what you really have to check is wheather your 'SI read' function is living up to the sampling rate you have set!
 
Check that by putting your 'time elapsed' check for SI Read function alone! Smiley Wink
Hope this helps
 
Regards
 
Dev
 
0 Kudos
Message 2 of 4
(2,256 Views)

hi there

this is a reported bug in LV 7.x!  SI clear takes as long as SI read. it has been fixed in 8.0.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 3 of 4
(2,248 Views)

Hi Guys

I was about to write this experiment.

 

Thanks,

Tomi

0 Kudos
Message 4 of 4
(2,244 Views)