LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Missed samples with acquire sound block

Hi,

I'm trying get the size of the array data from the acquire sound block. I have set it up at 44100 Hz sample rate and 1 second of duration.

But the size I get is 33075 samples, instead of 44100. I don't know where are the 1025 missed samples, maybe this samples are used to carry the timestamp and dt info. 

Can anyone help me with this?

Thanks!

Download All
0 Kudos
Message 1 of 6
(2,787 Views)

Wow, good discovery.  Just tested your code and can reproduce the same issue.

 

Very curious.

 

 

http://www.medicollector.com
0 Kudos
Message 2 of 6
(2,723 Views)

Try the attached code instead.  It sets up up a "continuous" recording, but then terminates itself after the required amount of data has been received.  That works well.

 

But what is interesting is that this VI also only returns 75% of the requested data if you set it up in "finite" mode.  Just like your previous VI. 

 

Very curious.  Looks like a bug to me.  You should report this to NI.

http://www.medicollector.com
0 Kudos
Message 3 of 6
(2,722 Views)

hello josborne,

 

I reported this issue to NI on Monday but I have not response by now.

 

Tomorrow I'm going to try your code, and see how the continuous and finite recording mode works.

 

Thank you!

0 Kudos
Message 4 of 6
(2,719 Views)

I do have the same sampling issue. Is this resolved?

0 Kudos
Message 5 of 6
(2,651 Views)

Check the release notes for the latest version of LabVIEW.  I seem to recall that this was fixed in one of the recent releases.  Maybe one of the service packs.

http://www.medicollector.com
0 Kudos
Message 6 of 6
(2,647 Views)