USRP Software Radio

cancel
Showing results for 
Search instead for 
Did you mean: 

USRP: save fm broadcast in a .wav file

Solved!
Go to solution

Hi umairpak,

 


@umairpak wrote:

I guess i need to change something or add something I am very confused. 


I asked you to attach a VI with some data included, but until now you refused to do so.

Again: Please provide a VI, which contains the data you want to save in a waveform indicator!

 

(In case you don't know the LabVIEW basics: run your VI until there is some data in your indicators. Then open the edit menu and set all values to default. Then save your VI and attach it here in the forum…)

Best regards,
GerdW


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

It looks like you are trying to play live audio AND play a WAV file at the same time?

 

The error message says the file play back VI can't find an available audio device.

 

Probably because the sound card is already taken by the stuff I circled

 

sndCapture.PNG

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 12 of 18
(1,133 Views)

Thanks RTSLVU for your reply.

The fact is that my vi creates .wav file but doesnt save any data to it. I mean the size is a few Kbs only.

What may be other possible errors.

Is that i am writing a .wav file and playing fm radio together!!!

Have you ever saved a live fm radio in a .wav file Sir.

 

Your reply will be appreciated.

 

0 Kudos
Message 13 of 18
(1,121 Views)

Hi umairpak,

 


@umairpak wrote:

The fact is that my vi creates .wav file but doesnt save any data to it. I mean the size is a few Kbs only.

What may be other possible errors.

Is that i am writing a .wav file and playing fm radio together!!!


Playing "fm radio" and saving data to file does not interfere with each other…

 

For the 3rd time I ask you to attach your VI with some useful default data included! (See message #8 and #10…)

To discuss that problem we need a VI from you with data included in the indicator "Audio channels" and the control "channel to play"!

Please attach your VI with some useful default data in all the FP elements!

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 18
(1,116 Views)

Gerd SIr

Actually i am using labview 2020 if i edit the VI would it be possible for you to run the VI.

Tjats why i was not sending VI containg data beacause i know yoou dont use 2020 oftenly.

Whereas if there still is any possibility you could open it then tell me is will send it.

Regards

0 Kudos
Message 15 of 18
(1,110 Views)

Hi umairpak,

 

as my signature line says (sometimes) I also use LV2020 - maybe you need to wait one more day until I can answer…

 

So for the 4th time: please attach a VI with some useful default data in all the controls/indicators!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 18
(1,108 Views)

Hi Gerd

nice to know you use 2020. I am attaching my project with your requirements.

kindly reply when you get free.

Your response will be appreciated.

Have a productive day!!!

Regards

0 Kudos
Message 17 of 18
(1,091 Views)
Solution
Accepted by topic author umairpak

Hi umairpak,

 

thanks for posting the files as requested…

 

I reduced your main VI to the bare minimum - and I was able to save a WAV file from your data!

 

But when using a sound player (I use MediaPlayerClassic HC) I get this warning:

Do you see the samplerate in this message?

 

This surely is connected to the dt in your waveforms:

A dt of 44100 converts to a frequency/samplerate of 1/44100Hz (or just 22.7µHz)!

I don't know any "standard" soundplayer supporting such frequencies!

 

Solution: check the dt calculations in your code!

 

(If you would have followed my requests faster we could have cleared up this problem several days earlier…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Download All
Message 18 of 18
(1,086 Views)