LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

choppy sound in dll

I have created a vi to use sound card IO to generate a signal and measure it, simultaneously. it works perfectly in LV. but when I compile it to a dll and try to call it back again, the sine wave sound is choppy? Anyone know why and how to fix this? Thanks
0 Kudos
Message 1 of 2
(2,614 Views)
What version of LabVIEW are you using?  The Sound VIs in LabVIEW 8.5 can handle simultaneous input and output (there is an example shipped with LabVIEW for doing this).  What sample rate and buffer size are you using?  How does changing these values reflect the quality of the sound?

The issue of compiling to a .DLL and calling it back may simply be efficiency of the code, usually pops/clicks in sound are due to buffer underflow/overflow.  For what reason are you compiling to a .DLL?  If you are keeping the code in LabVIEW, would using a subVI be an acceptable work-around?

Let me know what you find.  Cheers!
0 Kudos
Message 2 of 2
(2,601 Views)