07-09-2021 09:44 AM - edited 07-09-2021 09:46 AM
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…)
07-09-2021 07:21 PM - edited 07-09-2021 07:26 PM
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
07-12-2021 01:32 AM
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.
07-12-2021 01:42 AM
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!
07-12-2021 06:12 AM
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
07-12-2021 06:17 AM - edited 07-12-2021 06:17 AM
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!
07-12-2021 11:20 PM - edited 07-12-2021 11:21 PM
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
07-13-2021 08:16 AM - edited 07-13-2021 08:20 AM
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…)