LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Beginner: Analog Output with varying frequenccy

Hi,
I'm trying to recreate a simulink app in labview, which I'm just learning to use, please can you help?

What I'm doing:
FSK. I'm reading a .csv file containing hex values, converting these to binary, adding start stop bits etc and then outputting binary values every Xms to the frequency generator. Binary 1 is 1400Hz, 0 is 1200Hz.

Where I'm stuck:
To get this to work, I've had to use the 'Simulate Signal' and 'DAQ Assistant' blocks. These blocks are within the for loop which is reading in the binary values and converting them to a frequency.
The problem is that it takes about 8ms to shift from generating one frequency to the other. I presume this is because the two blocks I am using are being rebuilt at every iteration.

What I want to do:
Set up the port at the start of the program, and then update the frequency of the sine wave that I'm generating as I go along. I don't know how to do this.


This is probably silly/simple question but I'm very stuck!
Thank you for any help,


Martin

Problem:
I have
0 Kudos
Message 1 of 4
(2,670 Views)
Take a look at the attached file (LV 7.1). It changes the sampling rate on the fly to change your frequency. The loop that changes the rate iterates at about 2 ms. Maybe you can modify this to get what you want.
Randall Pursley
0 Kudos
Message 2 of 4
(2,661 Views)
Here is a LV 7.0 version
Randall Pursley
0 Kudos
Message 3 of 4
(2,659 Views)
Hi Randall,
Thank you very much, that's excellent & really appreciated.
Best regards,
Martin
0 Kudos
Message 4 of 4
(2,647 Views)