05-21-2008 10:45 PM
05-22-2008 09:58 PM
05-22-2008 11:37 PM
Hi,
Luckily, I managed to hear my audio signal at the receiver today!. Most of my past questions were answered, indeed.
I used the FM radio example I found in some thread. But, the problem now is that the files I could open and run where Windows small ( short) audio files. NI wav sound file did not open. the generator gave me an error at the Normalize function in my Generate FM signal from WAV file example.
Is it because the NI sound file is long (dozens of seconds) that it fails to be FM modulated and transmitted?
05-23-2008 11:20 AM
Hi Muslim,
This are very good news, the reason I did not posted yesterday is that I was testing the same set up you have. I wanted to give you a more concise solution. Let me kind of step through what I did:
I found a new: “Generate FM Signal from WAV” that will repeat the file continuously. The reason to do this is that part of the caveats in this application is the re-sampling and under sampling of the WAV signal needs to be done correctly or if not you lose signal integrity. So instead of combining those to VI like you did (still an excellent approach) I found this example that already does it for you. Remember that this are only starting points and the best practice is to completely understand the code but not use them as a final solution, I addition to this your programming skills in LabVIEW are going to be the key point on how much time you will spend debugging and polishing your code. With all that said the example that I’m talking about is in the ZIP file called: “fm_sound_transmitter.vi”
After this step was up and running I opened the FM radio for the 5660 like you have already done. With a coaxial cable from RFSG to RFSA I can see only one peal in the power spectrum; obviously the carrier frequency where my WAV is mounted. “NI PXI-5660 Software FM Radio” I the library that has the necessary VIs.
Now instead of using those annoying sounds windows have, I found a WAV file that generates a 1 KHz tone specifically use for testing and analysis purposes. “0_16.wav” is the name of the file.
The FM radio example converts that DBL array into a sound and sends it to your sound card, kind of neat, not?
Is the error message you where getting saying that the code is “out of memory”? In either case you are right first there is the limit of how much data you can store in the RFSG and second how many millions samples can LabVIEW handle to resample. Things you can do when playing around with these examples is to manipulate the rate of the wav file from 44100 to 22050, use smaller sound files and cut you file into smaller size and send a piece at a time.
I hope it helps
05-27-2008 01:29 AM
Hi Jaime,
Thanks a lot. The examples and support you offered me were so beneficial. I have one problem left. most sound files run, but, the NI sound file doesn't run on the fm radio example. I need this file to run or at least figure out why it could not be played or transmitted!
I thought it's about the file type, but, some other sound files of the same type do run and could be Tx. Any idea?
05-27-2008 03:54 PM
05-28-2008 02:11 AM
Hi Paul,
Sorry for bothering, but I'm having the same problem again. my RFSA seems ok, as I can run the radio software using an antenna.
Problem here is that I can't get the audio signals I transmit from the fm_sound_transmitter.
The program goes into an infinite loop at the rfsg_Resample and write.vi
What to do? please help a.s.a.p.
TQ
05-29-2008 01:29 PM
05-29-2008 01:48 PM