NI Home > Community > NI Discussion Forums

LabVIEW

Reply
Member
Gear
Posts: 12
0 Kudos

FSK Modulation/Demodulation

Hi, 

I am new to LabVIEW and have been learning using tutorials that I find in here.

 

I am trying to create a VI that will input an audio signal from myDAQ and do FSK modulation then demodulate and output using my laptop speakers.

Eventually I would like to send the modulated signal to another computer, but for now I am only learning how to do this. And possibly have a file with the history of the sent signal.

 

I have tried to do this without using the modulation toolkit, but I just ended up with loops that would take minutes to modulate for only a few seconds. So that didn't work as expected. Since I have the modulation toolkit I tried to use it looking at what others have done here, but I am not sure how to make it work exactly, and I couldn't find many tutorials about the modulation toolkit.

 

Can you guys please help me?!

I am attaching the VI that I created.

And if something doesn't make sense, please help me fix it, and understand why.

Active Participant
moderator1983
Posts: 876
0 Kudos

Re: FSK Modulation/Demodulation


Gear wrote:

I couldn't find many tutorials about the modulation toolkit.


There is a HELP DOCUMENT available for the toolkit. Also before you start writing your code, you may want to see/refer other examples built around your requirememt.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


Member
Gear
Posts: 12
0 Kudos

Re: FSK Modulation/Demodulation

 

After looking what you told me, I made a few changes and decided to start again.

I got an error, and I can't figure it out how to fix.

 

Can you please take a look and see what I did wrong? And how can I fix it?

Thank you

Member
TimeWaveZero
Posts: 118
0 Kudos

Re: FSK Modulation/Demodulation

[ Edited ]

Input Stream = 0...1

WaveForm to Binary U16 Array = Value Range ->  0...65535

 

Try something like this:

 

DWDT WaveForm to Boolean Array   For Loop [Indexing]  Boolean to (0,1)  [Concatening]

 

-------------------------------------------------------------------------------------------

Diego da Silva Pinheiro
Instituto Nacional de Pesquisas Espaciais
Active Participant
moderator1983
Posts: 876
0 Kudos

Re: FSK Modulation/Demodulation

I cannot open your code right now but seeing to the error message it is clear that the input bit stream (array) that you're feeding to 'MT modulate FSK.vi', it also contains elements with value other 'zeros' & 'ones'.

 

 


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


Member
Gear
Posts: 12
0 Kudos

Re: FSK Modulation/Demodulation

This seems to have worked. But how do I go back to digital?

I am trying to modulate and demodulate. 

Thank you!!

Member
TimeWaveZero
Posts: 118
0 Kudos

Re: FSK Modulation/Demodulation

[ Edited ]

Here it is the Conversion Logic.

 

Example Attached :smileyvery-happy:

 

 

 

-------------------------------------------------------------------------------------------

Diego da Silva Pinheiro
Instituto Nacional de Pesquisas Espaciais
Member
TimeWaveZero
Posts: 118
0 Kudos

Re: FSK Modulation/Demodulation

Just one little modification.

 

-------------------------------------------------------------------------------------------

Diego da Silva Pinheiro
Instituto Nacional de Pesquisas Espaciais
Member
Gear
Posts: 12
0 Kudos

Re: FSK Modulation/Demodulation

Thank you.

But can you please tell me where to find the second function that converts from dynamic data type to analog waveform?

You uploaded a VI using 2012 and I cannot open because I have a 2011. And I cannot seem to find this function.

Active Participant
moderator1983
Posts: 876
0 Kudos

Re: FSK Modulation/Demodulation

 


Gear wrote:

But can you please tell me where to find the second function that converts from dynamic data type to analog waveform?

You uploaded a VI using 2012 and I cannot open because I have a 2011. And I cannot seem to find this function.



From Dynamic Data Type (DDT)

 

From Dynamic Data Type (DDT)


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.