LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FM radio using NI USRP 2901 problem in sound file read

hi every one, i have written a program for FM TX in labview block diagram. but this program throws a error of 4810. which i tried in many sound file formats such as wav, mp3, amr etc, 

 hardware is usrp 2901

 

here i attach a image for it.

 

kindly reply

0 Kudos
Message 1 of 6
(3,575 Views)

Hi Kashizudoto,

 

but this program throws a error of 4810.

This error has an explanation text: "Cannot recognize sound format".

 

which i tried in many sound file formats such as wav, mp3, amr etc, 

Well, the function you use only supports WAV as is written in the help for this function.

Additionally not all different kind of encodings in the WAV file are supported - as is also written in the LabVIEW help!

 

Can you attach your WAV file here (atleast a smaller one, packed in a ZIP file)?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(3,567 Views)

@GerdW wrote:

Hi Kashizudoto,

 

but this program throws a error of 4810.

This error has an explanation text: "Cannot recognize sound format".

 

which i tried in many sound file formats such as wav, mp3, amr etc, 

Well, the function you use only supports WAV as is written in the help for this function.

Additionally not all different kind of encodings in the WAV file are supported - as is also written in the LabVIEW help!

 

Can you attach your WAV file here (atleast a smaller one, packed in a ZIP file)?



here is the wav format sir,

 

do it run the program?

Download All
0 Kudos
Message 3 of 6
(3,525 Views)

Hi Kashizudoto,

 

your WAV file is using a very unusual sample rate and some compression.

As the LabVIEW help (do you remember?) mentions, compressed WAV files aren't supported…

See this analysis result for your WAV:

check.png

("proprietory format 55h")

Compare with a standard WAV file:

check2.png

 

On your VI: unfortunately you are using LabVIEW-NXG and I haven't installed that one yet.

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 6
(3,521 Views)

sir, i have used another wav file and i accept u r solution,

 but i run the program with highlight execution it says labview memory is full. 

i have attach the zip file for u kindly take a look

 

0 Kudos
Message 5 of 6
(3,514 Views)

Hi Kashizudoto,

 

no need to put all (smaller) files into ZIPs. Only those bigger (WAV) files are easier to up-/downlad when packed as ZIP…

 

On your error: the error is generated in the Resample function.

As I don't know the size of your WAV file nor the settings you used for resampling I can only say: there surely is a reason to give that error message…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 6
(3,512 Views)