LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finite sound input does not return all requested samples

I apologize if this is a duplicate post - I searched but could not find a relevant discussion.

 

I am running the "Finite Sound Input.vi" from the example code.  When I configure a specific sample rate, and then request that number of samples (1-second of acquisition), I only get 3/4 of the requested samples.  For instance, a configuring a sample rate of 22050 and requesting a read of 22050 samples only returns 16536 samples with a sample time of 0.75 seconds with no timeout on the read.

 

I have attached my code.  How can I configure these vi's to yield the desired rate / samples / time, etc.

 

Windows 7, LV2009f3, Thanks,

-cb

0 Kudos
Message 1 of 4
(2,696 Views)

CB,

 

I have know idea why this happening.   And I will create a CAR and submit it to R&D.  The simple work around would be to change the sample mode constant from "Finite Samples" to "Continuous Samples".  When you do this it reports the correct number of samples.  I hope that this will work for you.

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 2 of 4
(2,669 Views)

Justin,

 

I had this posted in the Dynamic Signal Acquisition board too (kind of by accident dup posting) and got this reply:  http://forums.ni.com/ni/board/message?board.id=100&message.id=2362#M2362

 

No need to do a CAR right now.  Thanks for the response.

-cb

0 Kudos
Message 3 of 4
(2,663 Views)

CB,

 

Yep, it looks like Caleb's searching abilities are better than mine.  Don't know why I couldn't find it.  I hope that one of our work arounds will do for you.

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 4 of 4
(2,646 Views)