LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simultaneous sound io.vi

We have tried the Simultaneous sound Io.vi but have experienced problems. We are using the microphone input and speakers on the same sound card. The number of samples/ch is 5000 and the sample rate is 44100 S/s. Number of channels are 2 and bits per sample is 16.

When running the program we get a error message (4823) after some time (sometimes 3 seconds and sometimes after several minutes). If the number of samples/ch is increased, will the program run a longer time before failing. We tried to run the program on a computer with two sound cards and then it did not fail.

The other problem is that it dose not sound good. The speakers plays the input signal with some kind of sparking sound (glitches? choppy?). After some time this sound dissapere and it sound good but can come back again. I have search the forum for simular sound problems but have not found anyone with this kind.

Best regards,
Martin Persson
0 Kudos
Message 1 of 14
(5,654 Views)
i have exacly the same probleme
Did you found a solution or the reason ?
thank's
0 Kudos
Message 2 of 14
(5,621 Views)
Hi backsatge,

We have not found a soulution and have left LabView for some C programming.

/Martin
0 Kudos
Message 3 of 14
(5,609 Views)
I actualy think, that labview is a illustion
thank's
0 Kudos
Message 4 of 14
(5,596 Views)

I have been having the same issue getting a 4823 error when running Simultaneous Sound IO vi

 

M-Audio Delta 44 Sound Card

Dell Dimension 360 PC

Windows XP SP2

LabVIEW 8.2

20,000 Samp/Ch

4 Channels

44,100 S/s

16 Bit resolution

 

I can get the vi to stop on 4823 error at will by opening mail in Microsoft Outlook although it has stopped on it's own as well.

 

I am trying to develop a 4 Track Record - Playback application to replace a Tascam 234 Syncaset 4 track recorder. I'd like to have "confidence monitoring" while recording and thought a vi like the Simultaneous Sound IO vi would do the trick.

 

Is this a problem with the dll in Sound Input Read vi (which generates the 4823 error) or an issue with the Sound Output Write vi?

 

 Sure would like to hear of any fixes – thanks.

 

Message 5 of 14
(5,586 Views)
Yes my problem appear with the Sound input read VI
I received   an answer of a member .
my solution was to change the value between the sound input read buffer and the output write buffer ( divide by 3 )
But the probleme is the time that the loop need ( if you do spectrum analyse,...) 
Sorry for my english...
  
0 Kudos
Message 6 of 14
(5,558 Views)

Backstage,

 

Thanks for your reply and link to the “French” discussion of this problem.

 

I stumbled on “French” discussion on Friday and had the same questions as you. Why 16536 samples and why divide by 3?

 

I suspect that that configuration works best on Véronique’s PC.

 

I have tried her vi (Simultaneous Sound IO_works.vi) and on my PC it still get the 4823 error.

 

I have run out of time and must move on to other projects but will check back on this and the “French” discussion periodically.

 

No need to apologize for your English as my French is much, much worse. (http://www.freetranslation.com/)

 

Hans

 

Backstage,

 

Merci pour votre réponse et relie à la discussion « française » de ce problème.

 

J'ai trébuché sur la discussion « française » vendredi et questions pareilles eues comme vous. Pourquoi 16536 échantillons et divise pourquoi par 3 ?

 

Je soupçonne que cette configuration travaille mieux sur Véronique PC.

 

J'ai essayé son vi (Simultaneous Sound IO_works.vi) et sur mon PC il obtient toujours la 4823 erreur.

 

J'ai manqué du temps et dois déplacer sur aux autres projets mais vérifierai de retour sur ceci et la discussion « française » périodiquement.

 

Aucun besoin de s'excuser de votre anglais comme mon français est beaucoup de, beaucoup pire. (http://www.freetranslation.com/)

 

Hans

 

0 Kudos
Message 7 of 14
(5,551 Views)
Hello,

Ive been experiencing same problem here.
Whenever cpu is too busy, and the sound read loop "stalls" or whatever u get that error.
Happens especially when scrolling with mouse on a page where graphs are being plotted...

Beats me why that error comes though, maybe some timeout value as to how fast ur supposted to have read the buffer..and if u stall the prog it will poop the error.

Sadly i have no clue how to put priority levels on while loops, or what is the best way to use this sound read vi, cuz currently my half system is in that read while loop..

I got an appointment with a labview expert this week, so i hope he can help me..
But if anyone from labview staff could help us too, it be superb.

Goodluck all, and let us know a solution!
Message 8 of 14
(5,467 Views)
---Happens especially when scrolling with mouse on a page where graphs are being plotted...----

I have exacly the same problem.

0 Kudos
Message 9 of 14
(5,459 Views)
Found a solution just now, not sure if it works forever but its a BIG improvement...


Instead of processing the read audio data in the while loop, use a notificator and do it in another while loop:

http://img134.imageshack.us/img134/2306/solutionda0.jpg

Havent changed any of my code, and now it wont crash.

Also seems to me that the extract portion of signal block is the one causing the trouble, even if u  get the timeout on the read audio block...
(at least this is what i noticed after a QUICK test: read audio, scroll mouse while displayingbig graphs -> all ok, if i put the extract portion in the while loop i got error almost instantanious.)

Hope tihs helps some of u...

Message Edited by asdfwww on 04-20-2007 04:56 AM

Message Edited by asdfwww on 04-20-2007 04:57 AM

0 Kudos
Message 10 of 14
(5,438 Views)