03-23-2009 11:57 PM
hi all ,
i have some trouble about sound recording function.
i want to have 30S duration of sound input recording and also , if the user click the finish button
the recording will be stopped even it is still have time for recording.
i have tried to use loop with timer to take the data for 1 second period .but it will show the error
is there any other method to perform this function ?
Thank you
03-24-2009 02:20 AM
What is the error you are getting? please post your code so that it will be easy for us to debug and tell exactly where the problem is.
Thanks for your understanding,
Mathan
03-24-2009 10:39 AM
i have tried to use loop with timer to take the data for 1 second period .but it will show the error
is there any other method to perform this function ?
You are on the correct track here using a while loop and reading data in say 1 seconds interval. But try to skip the timer. Let the sound card do the timing details for you. Also use a larger buffer size for the sound card. You set the buffer size by the "number of samples/ch" control in the Sound Input Configure VI. Set this value to be at least 2 to 5 times larger than the "number of samples/ch" value used in the Sound Input Read VI. My guess is that you have a sound card buffer overflow problem.