From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.wav file amplitude modulation

Hi!!! new user

please guide me i want to am demodulate a .wav file.and hear the sound.But the play waveform is not working properly giving error 4800.

I will be very thankful in this regard.

0 Kudos
Message 1 of 12
(2,016 Views)

Hi umairpak,

 


@umairpak wrote:

But the play waveform is not working properly giving error 4800.


Did you read the error explanation?

What kind of soundcard do you use?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 12
(2,009 Views)

Sir please observe the error.

Download All
0 Kudos
Message 3 of 12
(1,976 Views)

Hi umairpak,

 

have you tried to get away without using ExpressVIs?

This works for me. (It might be technically incorrect regarding the waveform samplerate after decimation.)

 

Are you sure your soundcard can handle samplerates of 250kS/s (or fractions of it)?

Are you sure your DDT wire after decimation carries the correct samplerate? (Don't use DDT wires when you don't understand them!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 12
(1,970 Views)

Sir I am unable to attach the .wav file i want to AM demodulate and hear the sound.

Your solution when I applied is i think still showing the same errors

and if the sampling rate is very high is creating issue then how to low it

Secondly i will be thankful to you if you give me some source to search for AM modulation of .wav files

Thank You!

Download All
0 Kudos
Message 5 of 12
(1,940 Views)

Hi umairpak,

 

you can attach any file - once you pack it into a ZIP archive…

 


@umairpak1 wrote:

Your solution when I applied is i think still showing the same errors


As you didn't answer my question I have to repeat it:

What kind of soundcard do you use?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 12
(1,938 Views)

Sir i am attaching the sound files(.wav) which i have to AM demodulate along with my VI.And also i have attached a sound info. screen shot.

Kindly check where is the problem.Sir are there any drivers required in labview.Else if sound canont be played kindly guide me to save the AM demodulated waveform in a .wav file.

Download All
0 Kudos
Message 7 of 12
(1,905 Views)

Hi umairpak,

 


@umairpak1 wrote:

Kindly check where is the problem.Sir are there any drivers required in labview.


As said before: my default laptop soundcard cannot handle your wav file using a samplerate of 250kHz. But after decimation and correcting the samplerate/soundinfo accordingly it accepts the waveform for playing…

 


@umairpak1 wrote:

Sir i am attaching the sound files(.wav) which i have to AM demodulate along with my VI.

Else if sound canont be played kindly guide me to save the AM demodulated waveform in a .wav file.


Why should I? That is your own task/homework/job!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 12
(1,900 Views)

Hi umairpak,

 


@umairpak1 wrote:

And also i have attached a sound info. screen shot.


Can you play any kind of wave file on your computer?

Have you tried any of those Windows sounds, just to check the PlaySound routines of LabVIEW?

Sometime the computer offers several soundcards (like internal Realtek and external USB-connected earphones), so you need to select the right device…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 12
(1,891 Views)

Any sound does not play on labview whereas every sound plays elsewise on my headphones

0 Kudos
Message 10 of 12
(1,864 Views)