Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to dynamically adjust Frequency, Phase and Amplitude for a Generated Sine Wave in C/C++?

Hi,

I wonder if anybody know how to dynamically adjust Frequency, Phase and Amplitude for a Generated Sine Wave in C/C++? This is a part of my project: I need to dynamically generate a sine wave voltage signal by some calculation using the data from a simultaneous analog input and another signal.

Your help will be appreciated so much!

Marlon
0 Kudos
Message 1 of 4
(3,874 Views)
Hello marlon,

What DAQ board are you using?
This would greatly help me answer your question.

Nicholas C
National Instruments
Applications Engineering
0 Kudos
Message 2 of 4
(3,874 Views)
Hi, Nick:

Sorry, I use PCI-6110.

Thank you.
0 Kudos
Message 3 of 4
(3,874 Views)
Hello Marlon,
Here is an example of changing frequency and ampliude for an E-series device in Labwindows/CVI. The programming should be similar in C for your S-Series device. As is says on the linked webpage above, this process is going to be very processor intensive since you will continually be creating a buffer.

Nicholas C
National Instruments
Applications Engineering
0 Kudos
Message 4 of 4
(3,874 Views)