LabVIEW Idea Exchange

About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Top Authors
cancel
Showing results for 
Search instead for 
Did you mean: 

Improve sound playback quality

Sound playback on built-in sound cards using Standard vi's has multiple issues regarding quality (clicking etc.), choice of block sizes, latency, stability, inconsistent results between various OS versions, CPUs etc.

Needs complete re-write by NI to fix it.

Carsten Thomsen
4 Comments
Active Participant

Yes, I ran into the clicking issue just last week, trying to continuously sample a signal (white noise) and play the samples on the soundcard.  Even with separate loops and queues and buffering of the signal, it's still not easy to eliminate all the clicks.  This should be straight-forward!

 

NI Employee

What VIs were you using specifically?

Grant H.
National Instruments
LabVIEW Product Marketing Manager
Active Participant

Something similar to this:

SoundOutput.png

with of course other code to fill the queue with waveform data, and settings on Sound Output Configure for number of samples.  Trying to get playback close to realtime, I had fairly short waveforms (~10-100 samples at 10kHz), and it's almost impossible to stop it stuttering occasionally.

Member

We are using the standard sound VI's as show in GregS diagram.  We have used both the old lvsound.llb and lvsound2.llbs and they having varying issues.  lvsound.llb's don't work well on multi-threaded machines, and die after about 20 minutes or so.  lvsound2.llb works on mutli-threaded machines, but still suffers from clicking issues, and is very finicky regarding block size.  Typically they seem to work best with about 10k blocks.   They may run fine for a couple of minutes, and then start clicking.  Performance also seems to be very dependent of which platform the user is on...some have the issue, some don't. 

 

We've had several very qualified LabVIEW guys try to build work arounds, and they are all kludgy and do not give reliable performance.  Since sound playback is very crucial for us, we have spent multiple man-weeks on this issue, have had long talks with NI corporate with multiple developers/support/marketing staff without finding an acceptable solution. We keep praying...

 

 

Carsten