473,748 Members | 6,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

square wave / sine wave generator

I'm looking for a simple program or method to generate sine waves or
square waves at a desired frequency.

Thanks for your help

Ray

Jun 21 '07 #1
5 6215
On Jun 21, 1:43 pm, RayD <rgdyke...@aol. comwrote:
I'm looking for a simple program or method to generate sine waves or
square waves at a desired frequency.

Thanks for your help

Ray
Isn't this a Home Work?

Jun 21 '07 #2
RayD wrote:
I'm looking for a simple program or method to generate sine waves or
square waves at a desired frequency.
Have you tried Google? What's your C++ question?
Jun 21 '07 #3
RayD wrote:
I'm looking for a simple program or method to generate sine waves or
square waves at a desired frequency.
C++ does not generate waves except when the new Standard is released.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jun 21 '07 #4
"Bharath" writes:
On Jun 21, 1:43 pm, RayD <rgdyke...@aol. comwrote:
>I'm looking for a simple program or method to generate sine waves or
square waves at a desired frequency.
Isn't this a Home Work?
It doesn't sound like homework to me. Why would he settle for a *program*
if it were homework?

In any event I can't divine what the question is. It could mean the
production of tabular data, lines on a monitor or a sound from a speaker,
plus some more things I haven't thought of.
Jun 21 '07 #5

"RayD" <rg*******@aol. comschreef in bericht
news:11******** **************@ p77g2000hsh.goo glegroups.com.. .
I'm looking for a simple program or method to generate sine waves or
square waves at a desired frequency.

Thanks for your help

Ray
What exactly should the program do? Write values to a text-file, display a
wave on the screen, send a wave to some communciation port?

Regards,
Nathan
Jun 21 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
12698
by: Xanax | last post by:
Hi all, I need to produce a sine wave and use the WaveOut APi to sound it on my sound card. I also need to compute Fast Fourier Transform to modify the Sine wave. Any ideas on where to start or get some info on this?? Cheers, Xanax.
3
4623
by: Sloan | last post by:
I want to use MFC to plot Sin Wave . How can I do ?
11
12028
by: Phil Newman | last post by:
I'm trying to implement a basic sinewave signal using arrays, but I'm having difficulty (I'm a complete beginner!) This is what I have so far: using namespace std; double signal(double sinewave, double x); int main()
143
8065
by: suri | last post by:
Hello I downloaded glibc and tried looking for the code that implements the sine function i couldnt find the file. i went to the math directory and found math.h.. i guess that needs to be included for the sine function. but which .c file implements the sine/cosine and other trig fns thanks
8
12717
by: mcenley | last post by:
can any one please help me in creatind a sine wave in C++ please i also need to play it as a .wav file any random sound within sudible frequency will do
5
8816
by: MathNewbie | last post by:
Hi, I'm trying to do get my head around some, probably basic, math calculations. I checked some .net math libs, but the only thing I learn from studying those is humility ;-). Anyway, i have an array of points on a basic 2 dimensional axis. They are all points of a sine shaped line. (not a perfect sine though, as it's actually tide movement data that is roughly looking as a sine).
5
11243
by: MandaRonnie | last post by:
I have an assignment im working on for my computer science class (c programming). My program compiles right, but doesn't run like its suppose to. Could someone help me? Here is the assignment: The value of sin(x) can be approximated by using the formula: sin(x) = x −x3/3!+x5/5!−x7/7!+x9/9!· · · where x is an angle in radians. Using the formula, approximate the value of the sine of an angle (in degrees) entered by the user by...
4
6840
by: Iain Mackay | last post by:
Python Folks I'm a newbie to Python and am looking for a library / function that can help me fit a 1D data vector to a sine wave. I know the frequency of the wave, so its really only phase and amplitude information I need. I can't find anything in the most widely known libraries (they seem to be strong on polynomial fitting, but not, apparently, on trig functions) and I wondered if any one here had recommendations?
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9541
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4602
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.