LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I improve quality of sound signal tia sal22

Solved!
Go to solution
Greetings All

I have a VI that plays an audio signal out of an audio card but the quality isn't that great in real time when I modify it.  I can create the audio signal in mathematica 6 and it sounds great but labview has some issues can anyone recommend a way to improve the way the qualtiy of the audio signal sounds...Do I need to increase buffers or memory allocation to labview if so how can I do that.

tia sal22

PS I'm using labview 8.2 does 8.5 fix this problem?
0 Kudos
Message 1 of 7
(3,134 Views)
I am interested in the type of program that you are trying to run, I don't think that upgrading to 8.5 will effect the sound quality that you are producing, this will be down as you say to the memory allocation and the relationship between the LabVIEW program and your sound card drivers.
 
unfortunately I cannot seem to run your VI. Will you please reattach it for me, once I can see your code and method then with any luck I would hope that I can advise in more detail.
 
Thanks
Graham Green
Software Product Marketing
NI | Emerson
0 Kudos
Message 2 of 7
(3,110 Views)

The following error popups when opening ur vi.

Kindly reattach

Mathan

0 Kudos
Message 3 of 7
(3,107 Views)
Hi sal22,

I was able to run your vi, but all I heard was clicking.  What are you expecting to hear?

Also, have you seen the "Generate Sound" vi from the Help»Find Examples menu?
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 5 of 7
(3,061 Views)
I'm creating different audio sounds using equations using mathscript.  The generate sound.vi is what I used along with mathscript.  Every once in awhile I can here a drop out... (I have good ears 🙂 I'm just trying to find out a way to increase the buffers or memory to labview to prevent drop outs from occuring from the sound card.

The equation is below

 0.61887-0.680232 *cos(6.28319 *t)+2.96293 *cos(12.5664 *t)-0.532024 *cos(18.8496 *t)-0.87105 *cos(25.1327 *t)-0.708467 *cos(31.4159 *t)-0.510603 *cos(37.6991 *t)-0.236222 *cos(43.9823 *t)-0.112403 *cos(50.2655 *t)-0.0682778 *cos(56.5487 *t)-0.0317201 *cos(62.8319 *t)-0.00399665 *cos(69.115 *t)+0.0110171 *cos(75.3982 *t)+0.0150056 *cos(81.6814 *t)+0.0156793 *cos(87.9646 *t)+0.0122262 *cos(94.2478 *t)+0.00657111 *cos(100.531 *t)+0.00432201 *cos(106.814*t)+0.00341808 *cos(113.097 *t)+0.00370543 *cos(119.381 *t)+0.00333083 *cos(125.664 *t)+0.00210063 *cos(131.947 *t)+0.00505182 *cos(138.23 *t)+0.00866377 *cos(144.513 *t)+0.0110508 *cos(150.796 *t)+0.0103873 *cos(157.08*t)+0.00850073 *cos(163.363 *t)+0.00811838 *cos(169.646 *t)+0.00689916 *cos(175.929 *t)+0.0069005 *cos(182.212 *t)+0.00596679 *cos(188.496*t)+0.00358397 *cos(194.779 *t)+2.25013 *sin(6.28319 *t)-4.51511*sin(12.5664 *t)+0.380184 *sin(18.8496 *t)+0.461366 *sin(25.1327*t)+0.0632479 *sin(31.4159 *t)-0.135095 *sin(37.6991 *t)-0.160692*sin(43.9823 *t)-0.131694 *sin(50.2655 *t)-0.118779 *sin(56.5487*t)-0.0966167 *sin(62.8319 *t)-0.0797548 *sin(69.115 *t)-0.0599806*sin(75.3982 *t)-0.0380326 *sin(81.6814 *t)-0.0247422 *sin(87.9646*t)-0.0141664 *sin(94.2478 *t)-0.0078713 *sin(100.531 *t)-0.0060369*sin(106.814 *t)-0.0062354 *sin(113.097 *t)-0.00650479 *sin(119.381*t)-0.00560183 *sin(125.664 *t)-0.00806245 *sin(131.947 *t)-0.00982397*sin(138.23 *t)-0.00853789 *sin(144.513 *t)-0.00582364 *sin(150.796*t)-0.00249366 *sin(157.08 *t)-0.00125506 *sin(163.363 *t)-0.0000310571*sin(169.646 *t)+0.000971067 *sin(175.929 *t)+0.00160663 *sin(182.212*t)+0.00321022 *sin(188.496 *t)+0.00388205 *sin(194.779 *t)

tia sal22
0 Kudos
Message 6 of 7
(3,053 Views)
Solution
Accepted by topic author sal22
Hi sal22,

LabVIEW 8.2.1 (which appears to be the version you are using) automatically handles memory allocation up to 2 Gigabytes.  LabVIEW 8.5 and later support using up to 4 Gigabytes.

Please see the following KnowledgeBase articles for more information:


How Much Memory Can LabVIEW Use?
http://digital.ni.com/public.nsf/allkb/AC9AD7E5FD3769C086256B41007685FA?OpenDocument

LabVIEW 8.5 Help - Extending Virtual Memory Usage for 32-bit Windows
http://zone.ni.com/reference/en-XX/help/371361D-01/lvhowto/enable_lrg_ad_aware/

Also, I know some changes were made to lvsound2.dll in 8.5, the library that your vi uses to produce the sound.  In other words, if this is truly a memory issue, than upgrading to the latest version of LabVIEW might fix the problem.  I can't confirm this for you because my ears just aren't that good ;).  But, it's worth a try if you have a copy of 8.5/8.5.1 available.
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 7 of 7
(3,033 Views)